#ifndef ACTIV_BOOST_THREAD_DETAIL_THREAD_INTERRUPTION_HPP #define ACTIV_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 #include #if defined ACTIV_BOOST_THREAD_PROVIDES_INTERRUPTIONS namespace Boost { namespace this_thread { class ACTIV_BOOST_THREAD_DECL disable_interruption { bool interruption_was_enabled; friend class restore_interruption; public: ACTIV_BOOST_THREAD_NO_COPYABLE(disable_interruption) disable_interruption() ACTIV_BOOST_NOEXCEPT; ~disable_interruption() ACTIV_BOOST_NOEXCEPT; }; class ACTIV_BOOST_THREAD_DECL restore_interruption { public: ACTIV_BOOST_THREAD_NO_COPYABLE(restore_interruption) explicit restore_interruption(disable_interruption& d) ACTIV_BOOST_NOEXCEPT; ~restore_interruption() ACTIV_BOOST_NOEXCEPT; }; } } #endif // ACTIV_BOOST_THREAD_PROVIDES_INTERRUPTIONS #endif // header