Boost logo

Boost Users :

Subject: Re: [Boost-users] Thread_group semantics
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2014-01-13 17:35:30


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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net