13 Jan
2014
13 Jan
'14
10:35 p.m.
On 14/01/2014 11:21, Quoth Kenneth Adam Miller:
So, suppose that I give so many tasks to a thread_group that it becomes more than what the thread pool can handle. I would want the thread pool to just take longer, but still complete them all. Also, I want the tasks processed First Come First Serve. What happens when too many tasks are given to it? Do they get queued up?
How are you proposing to "give tasks" to a thread_group? Boost.Thread does not provide any mechanism for this. If you want something that does provide a means to queue tasks, have a look at Boost.Asio. The docs for that should answer your questions.