
"vicente.botet" <vicente.botet@wanadoo.fr> writes:
I'm sure there you have a good rationale to don't have condition::try_wait() or thread::try_join() functions. Could you share with us? Can these functions be emulated? If yes, why not adding them?
What would try_wait do? A condition variable notify only applies to currently waiting threads. Since "try_wait" would be instantaneous, it would never be notified since you would never get a concurrent call to notify. You have timed_wait though, so you could try it out with a timeout of zero if you're so inclined. try_join is more sensible, and it might be worth adding it. Anthony -- Anthony Williams Author of C++ Concurrency in Action | http://www.manning.com/williams Custom Software Development | http://www.justsoftwaresolutions.co.uk Just Software Solutions Ltd, Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK