]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/thread/test/test_condition_notify_all.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / thread / test / test_condition_notify_all.cpp
index 017ff28d1e38b219eeaa7775780807bbf11dba89..17c84d5d5020edf4c1260359972b13cf1635a48b 100644 (file)
@@ -179,13 +179,13 @@ namespace
 
 void do_test_notify_all_following_notify_one_wakes_all_threads()
 {
-    boost::thread thread1(wait_for_condvar_and_increase_count);
-    boost::thread thread2(wait_for_condvar_and_increase_count);
+    boost::thread thread1(&wait_for_condvar_and_increase_count);
+    boost::thread thread2(&wait_for_condvar_and_increase_count);
 
     boost::this_thread::sleep(boost::posix_time::milliseconds(200));
     multiple_wake_cond.notify_one();
 
-    boost::thread thread3(wait_for_condvar_and_increase_count);
+    boost::thread thread3(&wait_for_condvar_and_increase_count);
 
     boost::this_thread::sleep(boost::posix_time::milliseconds(200));
     multiple_wake_cond.notify_one();