Le 27/11/12 00:46, Andrew Harvey a écrit :
Hi Vicente - thanks for your quick response.
Please don't top post in this ML.
I am using Boost 1.49. A few of the third-party libraries I rely on do not yet work with later versions.
I had a look through the thread.cpp source code and noticed there is a variable called current_thread_tls_key. This is exactly the information I need to do my own cleanup. However it is hidden away within the file's anonymous namespace (for very good reasons, no doubt!) That said, is there any way to access it? I would the be able to call pthread_key_delete() on it and hopefully prevent my host application from crashing.
You could always add a function that retrieves it. I don't master this part of Boost.Thread enough to tell you if this could be enough. Best, Vicente