summaryrefslogtreecommitdiff
path: root/lib/cpp/src/thrift/windows/TWinsockSingleton.h
diff options
context:
space:
mode:
authorcyy <cyyever@outlook.com>2019-01-05 13:45:07 +0800
committerJames E. King III <jking@apache.org>2019-01-07 08:11:37 -0500
commitc109e019790a87ef1f874dfac3482ac45a57d3ab (patch)
tree5c010cc93d0c3ff0cd6c16e93595b69b46efe194 /lib/cpp/src/thrift/windows/TWinsockSingleton.h
parent83b65f06fa380ed94669bdb461344f4f6b591191 (diff)
downloadthrift-c109e019790a87ef1f874dfac3482ac45a57d3ab.tar.gz
remove boost::thread and boost::mutex code
Diffstat (limited to 'lib/cpp/src/thrift/windows/TWinsockSingleton.h')
-rw-r--r--lib/cpp/src/thrift/windows/TWinsockSingleton.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/cpp/src/thrift/windows/TWinsockSingleton.h b/lib/cpp/src/thrift/windows/TWinsockSingleton.h
index 0eab6d4ec..50458a937 100644
--- a/lib/cpp/src/thrift/windows/TWinsockSingleton.h
+++ b/lib/cpp/src/thrift/windows/TWinsockSingleton.h
@@ -33,13 +33,7 @@
// boost
#include <boost/noncopyable.hpp>
-#if USE_BOOST_THREAD
-#include <boost/thread/once.hpp>
-#elif USE_STD_THREAD
#include <mutex>
-#else
-#error For windows you must choose USE_BOOST_THREAD or USE_STD_THREAD
-#endif
#include <thrift/stdcxx.h>
@@ -70,13 +64,7 @@ private:
private:
static instance_ptr instance_ptr_;
-#if USE_BOOST_THREAD
- static boost::once_flag flags_;
-#elif USE_STD_THREAD
static std::once_flag flags_;
-#else
-#error Need a non-Boost non-C++11 way to track single initialization here.
-#endif
};
}
}