Re: [Boost-users] thread_specific_ptr problem
Hi all,
The following code demonstrates thread_specific_ptr problem while loading/unloading a shared library. Apparently some resource is not cleanned up. Can somebody comment on this?
Thanks,
Arkadiy
lib.cpp:
-------
#include <string>
#include
./boost_thread_test.exe ./boost_thread_test.so 600 ... attempt 509 attempt 510 attempt 511 boost_thread_test.exe: libs/thread/src/pthread/thread.cpp:102: void boost::detail::<unnamed>::create_current_thread_tls_key(): Assertion `!pthread_key_create(¤t_thread_tls_key,&tls_destructor)' failed. Aborted
AMDG Vertleyb, Arkadiy wrote:
The following code demonstrates thread_specific_ptr problem while loading/unloading a shared library. Apparently some resource is not cleanned up. Can somebody comment on this?
You might want to take a look at the (undocumented) boost/thread/detail/tss_hooks.hpp which seems to be designed to deal with this problem. In Christ, Steven Watanabe
participants (2)
-
Steven Watanabe
-
Vertleyb, Arkadiy