
4 May
2005
4 May
'05
5:32 p.m.
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