I'm reading the documentation section for boost::thread_specific_ptr
, and trying to parse this paragraph:
Note: on some platforms, cleanup of thread-specific data is not performed for threads created with the platform's native API. On those platforms such cleanup is only done for threads that are started with boost::thread unless boost::on_thread_exit() is called manually from that thread.
First, what is probably a pedantic point: I assume they meant to say boost::this_thread::at_thread_exit()
rather than boost::on_thread_exit()
. Otherwise I really am lost.
More importantly, what exactly does the thread need to do? Is it sufficient for it to pass some no-op function to at_thread_exit(), or does it need to pass something else?
(This topic was discussed in comments here, but I'm still not sure what I need to do.)
(Back story: I'm looking for a solution to the problem I raised earlier today).