Boost logo

Boost Users :

Subject: Re: [Boost-users] Manually cleaning up TSS data in boost 1.49
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-11-27 13:55:25


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



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net