示例#1
0
 INLINE void ActivateOneOutputTask(TaskQueue& queue, int task, int* tasknum)
 {   
     if (DEC_ATOMIC(&fTaskList[task]) == 0) {
         *tasknum = task;
     } else {
         *tasknum = queue.PopHead(); 
     }
 }
示例#2
0
 INLINE void GetReadyTask(TaskQueue& queue, int* tasknum)
 {
     if (*tasknum == WORK_STEALING_INDEX) {
         *tasknum = queue.PopHead();
     }
 }