
24 Feb
2013
24 Feb
'13
5:41 p.m.
On Sat, Feb 23, 2013 at 1:04 PM, Tim Blechmann <tim@klingt.org> 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