From e1484fc788fd43b46fe596d78e9b6bfcfd8a0165 Mon Sep 17 00:00:00 2001 From: Anthony Williams Date: Fri, 5 Oct 2007 12:10:06 +0000 Subject: [PATCH] Changed call_once to header-only template that takes arbitrary function objects; this changes parameter order [SVN r39701] --- src/static_mutex.cpp | 2 +- test/regress/info.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/static_mutex.cpp b/src/static_mutex.cpp index b01f9f0d..cef76783 100644 --- a/src/static_mutex.cpp +++ b/src/static_mutex.cpp @@ -155,7 +155,7 @@ void scoped_static_mutex_lock::lock() { if(0 == m_have_lock) { - boost::call_once(&static_mutex::init, static_mutex::m_once); + boost::call_once(static_mutex::m_once,&static_mutex::init); if(0 == m_plock) m_plock = new boost::recursive_mutex::scoped_lock(*static_mutex::m_pmutex, false); m_plock->lock(); diff --git a/test/regress/info.hpp b/test/regress/info.hpp index 2b276693..4fa55afa 100644 --- a/test/regress/info.hpp +++ b/test/regress/info.hpp @@ -67,7 +67,7 @@ private: { #ifdef TEST_THREADS static boost::once_flag f = BOOST_ONCE_INIT; - boost::call_once(&init_data, f); + boost::call_once(f,&init_data); return do_get_data(); #else static data_type d;