
9 Jan
2010
9 Jan
'10
2:01 p.m.
On 01/09/2010 04:55 PM, Andrey Semashev wrote:
On 01/09/2010 02:57 PM, Stefan Strasser wrote:
Am Saturday 09 January 2010 13:58:35 schrieb Andrey Semashev: However, __thread doesn't allow to register a cleanup function that is required by Boost.Thread. You could create a dummy TLS with pthread API for that, but then I'm not sure if you could reliably access __thread variables from that function.
On the second thought, yes, it seems quite possible to store the pointer in both TLSs - the pthread and __thread one, and register the cleanup for the former. Good point you have!