summaryrefslogtreecommitdiff
path: root/src/third_party/boost-1.60.0/boost/thread/detail/thread_interruption.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/boost-1.60.0/boost/thread/detail/thread_interruption.hpp')
-rw-r--r--src/third_party/boost-1.60.0/boost/thread/detail/thread_interruption.hpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/third_party/boost-1.60.0/boost/thread/detail/thread_interruption.hpp b/src/third_party/boost-1.60.0/boost/thread/detail/thread_interruption.hpp
new file mode 100644
index 00000000000..5d7d10fecdf
--- /dev/null
+++ b/src/third_party/boost-1.60.0/boost/thread/detail/thread_interruption.hpp
@@ -0,0 +1,39 @@
+#ifndef BOOST_THREAD_DETAIL_THREAD_INTERRUPTION_HPP
+#define BOOST_THREAD_DETAIL_THREAD_INTERRUPTION_HPP
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+// (C) Copyright 2007-9 Anthony Williams
+// (C) Copyright 2012 Vicente J. Botet Escriba
+
+#include <boost/thread/detail/config.hpp>
+#include <boost/thread/detail/delete.hpp>
+
+#if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS
+
+namespace boost
+{
+ namespace this_thread
+ {
+ class BOOST_THREAD_DECL disable_interruption
+ {
+ bool interruption_was_enabled;
+ friend class restore_interruption;
+ public:
+ BOOST_THREAD_NO_COPYABLE(disable_interruption)
+ disable_interruption() BOOST_NOEXCEPT;
+ ~disable_interruption() BOOST_NOEXCEPT;
+ };
+
+ class BOOST_THREAD_DECL restore_interruption
+ {
+ public:
+ BOOST_THREAD_NO_COPYABLE(restore_interruption)
+ explicit restore_interruption(disable_interruption& d) BOOST_NOEXCEPT;
+ ~restore_interruption() BOOST_NOEXCEPT;
+ };
+ }
+}
+
+#endif // BOOST_THREAD_PROVIDES_INTERRUPTIONS
+#endif // header