Boost logo

Boost Users :

Subject: Re: [Boost-users] threads and async questions and asnwers
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2015-05-22 01:42:55


On 22/05/2015 08:18, Victor Yankee wrote:
> I have a thread with a class and its method that raises a "question"
> signal and needs to wait with a timeout for an "answer" signal.
>
> There are several worker threads, some of which may be connected to the
> question signal. The answer signal will be raised by a worker thread
> only if it knows the answer; it is possible that no worker thread knows
> the answer so no answer signal will be raised (hence need for timeout).
> The question thread cannot know which worker thread to ask.

The first thing you need to work out is what happens if more than one
worker thread knows the answer. Or whether this is not possible for
other reasons.


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