Guest User

Untitled

a guest
Jun 24th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1.  
  2. ThreadPoolNormal::ThreadPoolNormal(int num_workers) :
  3.    workers(num_workers),
  4.    stopped(false)
  5.  {
  6.    queueLock.unlock();
  7.    int i;
  8.    for (i = 0; i < num_workers; i++) {
  9.      pthread_create(&workers[i], NULL, &ThreadPoolNormal::run, NULL);
  10.    }
  11.  }
Add Comment
Please, Sign In to add comment