|
Boost : |
From: Reid Sweatman (borderland_at_[hidden])
Date: 2000-08-10 21:49:49
> -----Original Message-----
> From: Thomas Holenstein [mailto:tholenst_at_[hidden]]
> Sent: Wednesday, August 09, 2000 4:25 PM
> To: boost_at_[hidden]
> Subject: Re: [boost] Re: Threads by Jeremy and Monitors in one?
> If some people want a timeout, I'd suggest throwing an exception after
> a specified time.
Seems to me this would be a misuse of exception, since it's *expected*
behavior, not a violation of the class contract.
> There are some detail questions open: What happens with multiple
> notifys, which thread enters first, the waiting or the locked, but I
> think these are detail.
Again, doesn't this trip over exception handling? I was under the
impression that how simultaneous throws in different threads gets handled is
implementation-dependent.
Reid Sweatman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk