2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-09 11:32:12 +00:00

Changed call_once to header-only template that takes arbitrary function objects; this changes parameter order

[SVN r39701]
This commit is contained in:
Anthony Williams
2007-10-05 12:10:06 +00:00
parent a0fff90c26
commit 4b5046366b
7 changed files with 78 additions and 248 deletions

View File

@@ -182,7 +182,7 @@ namespace boost {
namespace detail {
void tss::init(boost::function1<void, void*>* pcleanup)
{
boost::call_once(&init_tss_data, tss_data_once);
boost::call_once(tss_data_once, &init_tss_data);
if (tss_data_cleanup_handlers == 0)
throw thread_resource_error();
boost::mutex::scoped_lock lock(*tss_data_mutex);