boost::thread and creating a pool of them!
问题 boost::thread class has a default constructor which gives a "Not-a-thread", so what is boost::thread t1; good for? Can I give it a function to execute later in the code? and another question: I'm trying to write a little server which has a staged architecture (SEDA), there are a number of worker threads in each stage and the stages are connected with event queues. when i create the pool with 4 worker threads using boost::thread_group like this: (I've removed the condition variable on the