GenerateWork() public method

public GenerateWork ( ) : void
return void
Esempio n. 1
0
        public override WorkBlock GetWorkBlock()
        {
            if (mStatus != Status.Ready)
            {
                return(null);
            }

            if (mJobs.Count <= 0)
            {
                return(null);
            }

            JobInfo ji = mJobs[mJobs.Count - 1];

            ji.GenerateWork();
            mNewBlockReady = false;
            Console.WriteLine("GetWork job: " + ji.mJobID);
            return(ji);
        }