]> git.sesse.net Git - casparcg/blobdiff - common/os/windows/win32_exception.cpp
Move from boost::thread to std::thread for nearly everything.
[casparcg] / common / os / windows / win32_exception.cpp
index 0a65c5cebb66b9d83b022f2de6ee4bfb836be3a8..267696f03eb1e39fe5043232317d87a2451c2e74 100644 (file)
@@ -2,7 +2,6 @@
 
 #include "win32_exception.h"
 
-#include <boost/thread.hpp>
 #include <boost/lexical_cast.hpp>
 
 #include "../../thread_info.h"
@@ -38,7 +37,7 @@ inline void SetThreadName(DWORD dwThreadID, LPCSTR szThreadName)
 
 bool& installed_for_thread()
 {
-       static boost::thread_specific_ptr<bool> installed;
+       static thread_local bool installed;
 
        auto for_thread = installed.get();