Re: [patch] Define std::promise::set_value_at_thread_exit() etc.

2014-12-02 Thread Jonathan Wakely
On 03/12/14 02:12 +0100, Gerald Pfeifer wrote: This breaks FreeBSD (both 8 and 10) from what I can tell. [...] : error: 'atexit' is not a member of 'std' std::atexit (run); ^ I've just committed this at r218300 which I hope will fix it. Sorry for the breakage. commit e256537afe817f0

Re: [patch] Define std::promise::set_value_at_thread_exit() etc.

2014-12-02 Thread Jonathan Wakely
On 3 December 2014 at 01:12, Gerald Pfeifer wrote: > On Tuesday 2014-12-02 01:51, Jonathan Wakely wrote: >> >> Tested x86_64-linux + powerpc64-linux, committed to trunk. > > >> commit 4701f811a8364bbd009571f5ec6bd562f5433efa >> Author: Jonathan Wakely >> Date: Mon Oct 20 12:23:24 2014 +0100 >>

Re: [patch] Define std::promise::set_value_at_thread_exit() etc.

2014-12-02 Thread Gerald Pfeifer
On Tuesday 2014-12-02 01:51, Jonathan Wakely wrote: Tested x86_64-linux + powerpc64-linux, committed to trunk. commit 4701f811a8364bbd009571f5ec6bd562f5433efa Author: Jonathan Wakely Date: Mon Oct 20 12:23:24 2014 +0100 Define *_at_thread_exit() functions. This breaks FreeBSD (bot

Re: [patch] Define std::promise::set_value_at_thread_exit() etc.

2014-12-01 Thread Jonathan Wakely
On 23/10/14 17:00 +0100, Jonathan Wakely wrote: This adds: std::notify_all_at_thread_exit() std::promise<>::set_value_at_thread_exit() std::promise<>::set_exception_at_thread_exit() std::packaged_task<>::make_ready_at_thread_exit() There's a linked list of callbacks that run after TLS destructor

[patch] Define std::promise::set_value_at_thread_exit() etc.

2014-10-23 Thread Jonathan Wakely
This adds: std::notify_all_at_thread_exit() std::promise<>::set_value_at_thread_exit() std::promise<>::set_exception_at_thread_exit() std::packaged_task<>::make_ready_at_thread_exit() There's a linked list of callbacks that run after TLS destructors (called by a pthread_key_create destructor)