3

I am building a system in which i will need to submit small tasks and wait for their completion in main thread. I have found a thread pool implementation https://github.com/vit-vit/CTPL.

The problem is the compiler (i have gcc 4.4.7 redhat) doesnt support the c++11 futures and its not going to be updated any sooner. I tried to change the above implementation to use boost future/async etc but i am getting all sort of issues for e.g. on windows boost::async doesnt support boost::launch::deferred policy and crashes.

Is there a available thread pool which i can use? Or if someone can guide me to build a thread pool where i can wait in the main thread for all the tasks to be done like in case of future.

Thank you in advance.

user888270
  • 613
  • 2
  • 8
  • 16

0 Answers0