Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/thread/detail/thread_interruption.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 #ifndef BOOST_THREAD_DETAIL_THREAD_INTERRUPTION_HPP
0002 #define BOOST_THREAD_DETAIL_THREAD_INTERRUPTION_HPP
0003 // Distributed under the Boost Software License, Version 1.0. (See
0004 // accompanying file LICENSE_1_0.txt or copy at
0005 // http://www.boost.org/LICENSE_1_0.txt)
0006 // (C) Copyright 2007-9 Anthony Williams
0007 // (C) Copyright 2012 Vicente J. Botet Escriba
0008 
0009 #include <boost/thread/detail/config.hpp>
0010 #include <boost/thread/detail/delete.hpp>
0011 
0012 #if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS
0013 
0014 namespace boost
0015 {
0016     namespace this_thread
0017     {
0018         class BOOST_THREAD_DECL disable_interruption
0019         {
0020           bool interruption_was_enabled;
0021           friend class restore_interruption;
0022         public:
0023             BOOST_THREAD_NO_COPYABLE(disable_interruption)
0024             disable_interruption() BOOST_NOEXCEPT;
0025             ~disable_interruption() BOOST_NOEXCEPT;
0026         };
0027 
0028         class BOOST_THREAD_DECL restore_interruption
0029         {
0030         public:
0031             BOOST_THREAD_NO_COPYABLE(restore_interruption)
0032             explicit restore_interruption(disable_interruption& d) BOOST_NOEXCEPT;
0033             ~restore_interruption() BOOST_NOEXCEPT;
0034         };
0035     }
0036 }
0037 
0038 #endif // BOOST_THREAD_PROVIDES_INTERRUPTIONS
0039 #endif // header