code_junkie

Thread pool for executing arbitrary tasks with different priorities

Nov 10th, 2011
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. namespace ThreadPool
  2. {
  3. class Task
  4. {
  5. public:
  6. Task();
  7. void run();
  8. };
  9.  
  10. class ThreadPool
  11. {
  12. public:
  13. ThreadPool();
  14. ~ThreadPool();
  15.  
  16. void run(Task *inst);
  17. void stop();
  18. };
  19. }
Add Comment
Please, Sign In to add comment