Date: 2001-03-19 17:59:15
--- In boost_at_y..., Jesse Jones <jejones_at_a...> wrote:
> >For CloseHandle this is very true. However, this discussion
> >with the checks made for misuse of the lock types (such as multiple
> >lock attempts). It seems to me that this is still a gray area.
> >seem to think it should be an exception, others an assertion (with
> >the ability to leave it "on" during release/production builds).
> I'm not sure there is anyone left who wants to assert on multiple
> attempts. Asserts are only reasonable if you can catch all the
> during development and QA. But problems due to race conditions seem
> into runtime error territory.
I didn't get the feeling that everyone agreed on this count, but if
they do I feel a lot better :). For the short term I'll change the
other error checks to standard C asserts, though I probably won't get
this done until tomorrow (there will be another upload later tonight
with other changes, however). I do think that a configurable
assertion would be appropriate for Boost libraries in general, but I
don't want to tackle this idea specifically for Boost.Threads.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk