I want to implement thread pool using boost::thread
class.
I am able to create the threads using below line.
boost::thread Consumer_1(consume);
where consumer_1
is thread and consume is the function bound to it.
Above statement starts the thread as soon as it gets executed.
Now I just want to create the thread and do the binding run time.
I have not yet discovered the boost
method to delay this binding.
Can anyone help on this?