Gerard-Meier

Worker from threadpool

May 26th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. void* worker(void* voidPool) {
  2.     ThreadPool* pool = (ThreadPool*) voidPool;
  3.  
  4.     while(1) {
  5.         singlerun((void*) popTaskWait(pool));
  6.     }
  7.  
  8.     assert(0 == 1);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment