Boost logo

Boost Users :

Subject: Re: [Boost-users] threads and async questions and asnwers
From: Victor Yankee (victor.whiskey.yankee_at_[hidden])
Date: 2015-05-21 17:16:36


>
> From: Michael Powell <mwpowellhtx_at_[hidden]>
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] threads and async questions and asnwers
> Message-ID:
> <
> CAMEoF_FUUVLa1Cq9_kCRLB-bSRMhH1fni5ft71-4pU-qvAy4fQ_at_[hidden]>
> Content-Type: text/plain; charset=UTF-8
>
> On Thu, May 21, 2015 at 4:18 PM, Victor Yankee
> <victor.whiskey.yankee_at_[hidden]> wrote:
> > Hello List,
> >
> > 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.
>
> Sounds like a homework question to me. Besides which, the problem
> statement pretty much spelled out where you likely need to focus.
>

This is not homework; your response was not helpful.

>
> > What is a good way to achieve this using boost 1.58 and/or C++11? I am
> using
> > g++ 4.9 on 64bit ubuntu 14.04.
> >
> > Thanks,
> > Vic



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