Boost logo

Boost :

Subject: Re: [boost] [thread] ~condition_variable_any verifications
From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2013-02-24 12:41:05


On Sat, Feb 23, 2013 at 1:04 PM, Tim Blechmann <tim_at_[hidden]> wrote:

> >>> >> i know that these verifications can be really useful in many case,
> but
> >>> >> in my use case, it makes exit() rather unusable, and i'd have to
> >>> >> redesign some of the internal logic to avoid this assertion failure.
> >>> >>
> >>> >> thoughts?
> >> >
> >> > Which alternative behavior would you expect?
> > I don't know what the standard says about this, but I suspect that you
> > should add a exit handle to join all your threads.
>
> checking my last draft of the standard, there seems to be a better
> workaround: exit() calls destructors, _Exit() and quick_exit() don't ...
> unfortunately the later are just c++11 :/
>
>
_Exit is also C99 and POSIX, so it might be supported outside of C++11 mode
in many platforms.

HTH,

-- gpd


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