Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ThreadPoolNormal::ThreadPoolNormal(int num_workers) :
- workers(num_workers),
- stopped(false)
- {
- queueLock.unlock();
- int i;
- for (i = 0; i < num_workers; i++) {
- pthread_create(&workers[i], NULL, &ThreadPoolNormal::run, NULL);
- }
- }
Add Comment
Please, Sign In to add comment