Boost logo

Boost :

From: Russell Hind (rh_gmane_at_[hidden])
Date: 2005-05-04 12:32:17


Jon Kalb wrote:
>
> In the code snippet above does the line "int result = wait_for_value();"
> block until the completion of the thread? (It must or there is no way of
> knowing if the value of result is valid.) Is there a way for the client
> to avoid the block by checking whether or not thread is completed so
> that the call won't block... Some sort of wait_for_value.is_done()?
>

I would hope the joiner class has a non-blocking check. IIRC, ACE does
allow you to check in a non-blocking fashion with its future objects

Cheers

Russell


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk