]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/thread/test/test_once.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / thread / test / test_once.cpp
index 0232e59af869b9c47f3220887f1cbb7269578846..81f5085aa82d73edf4d98f59f04e29a6dff9483c 100644 (file)
@@ -11,9 +11,9 @@
 #include <boost/thread/thread.hpp>
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/once.hpp>
+#include <iostream>
 
-#define LOG \
-  if (false) {} else std::cout << std::endl << __FILE__ << "[" << __LINE__ << "]"
+#include <boost/thread/detail/log.hpp>
 
 boost::once_flag flag=BOOST_ONCE_INIT;
 int var_to_init=0;
@@ -46,7 +46,7 @@ void call_once_thread()
 
 BOOST_AUTO_TEST_CASE(test_call_once)
 {
-  LOG;
+  BOOST_DETAIL_THREAD_LOG;
 
     unsigned const num_threads=20;
     boost::thread_group group;
@@ -105,7 +105,7 @@ void call_once_with_functor()
 
 BOOST_AUTO_TEST_CASE(test_call_once_arbitrary_functor)
 {
-  LOG;
+  BOOST_DETAIL_THREAD_LOG;
 
     unsigned const num_threads=20;
     boost::thread_group group;
@@ -166,7 +166,7 @@ void call_once_with_exception()
 
 BOOST_AUTO_TEST_CASE(test_call_once_retried_on_exception)
 {
-  LOG;
+  BOOST_DETAIL_THREAD_LOG;
     unsigned const num_threads=20;
     boost::thread_group group;