Lines Matching refs:work
49 if (!gGlobal) { // If we have no threads, the work must already be done.
55 Work work;
59 // Someone has picked up all the work (including ours). How nice of them!
63 gGlobal->fWork.pop(&work);
67 work.fn(work.arg);
68 sk_atomic_dec(work.pending); // Release pairs with the sk_acquire_load() just above.
113 Work work = { fn, arg, pending };
117 fWork.push(work);
128 Work work = { fn, (char*)arg + i*stride, pending };
129 batch[i] = work;
137 Work work;
147 pool->fWork.pop(&work);
149 work.fn(work.arg);
150 sk_atomic_dec(work.pending); // Release pairs with sk_acquire_load() in Wait().