Re: [patch] C++11: Observers for the three 'handler functions'

2013-04-05 Thread Jonathan Wakely
This should fix the handlers for platforms without __atomic_exchange for pointers by using a mutex. I used the old __mutex type not std::mutex because it's available on more platforms and works for the 'single' thread model too. I didn't try to optimise away the atomic ops for accessing the

Re: [patch] C++11: Observers for the three 'handler functions'

2013-04-05 Thread Jonathan Wakely
On 5 April 2013 11:13, Jonathan Wakely wrote: This should fix the handlers for platforms without __atomic_exchange for pointers by using a mutex. I used the old __mutex type not std::mutex because it's available on more platforms and works for the 'single' thread model too. I didn't try to

Re: [patch] C++11: Observers for the three 'handler functions'

2013-04-04 Thread Jonathan Wakely
On 3 April 2013 12:59, Paolo Carlini wrote: On 04/03/2013 01:53 PM, Jonathan Wakely wrote: On 3 April 2013 12:45, Paolo Carlini wrote: On 04/03/2013 02:09 AM, Jonathan Wakely wrote: This patch implements http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3189.htm Thanks Jon. I'm

Re: [patch] C++11: Observers for the three 'handler functions'

2013-04-04 Thread Paolo Carlini
Hi, On 04/04/2013 10:56 AM, Jonathan Wakely wrote: On 3 April 2013 12:59, Paolo Carlini wrote: On 04/03/2013 01:53 PM, Jonathan Wakely wrote: On 3 April 2013 12:45, Paolo Carlini wrote: On 04/03/2013 02:09 AM, Jonathan Wakely wrote: This patch implements

Re: [patch] C++11: Observers for the three 'handler functions'

2013-04-03 Thread Paolo Carlini
On 04/03/2013 02:09 AM, Jonathan Wakely wrote: This patch implements http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3189.htm Thanks Jon. I'm seeing abi_check fails which seem related. Could you please double check? Thanks again, Paolo.

Re: [patch] C++11: Observers for the three 'handler functions'

2013-04-03 Thread Jonathan Wakely
On 3 April 2013 12:45, Paolo Carlini wrote: On 04/03/2013 02:09 AM, Jonathan Wakely wrote: This patch implements http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3189.htm Thanks Jon. I'm seeing abi_check fails which seem related. Could you please double check? Ah sorry, I didn't

Re: [patch] C++11: Observers for the three 'handler functions'

2013-04-03 Thread Paolo Carlini
On 04/03/2013 01:53 PM, Jonathan Wakely wrote: On 3 April 2013 12:45, Paolo Carlini wrote: On 04/03/2013 02:09 AM, Jonathan Wakely wrote: This patch implements http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3189.htm Thanks Jon. I'm seeing abi_check fails which seem related. Could

[patch] C++11: Observers for the three 'handler functions'

2013-04-02 Thread Jonathan Wakely
This patch implements http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3189.htm The function pointer holding the current new handler was exposed as an extern variable, which is unnecessary now there's an accessor for it. Atomic operations are used to set and retrieve the handlers to avoid