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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user