Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:10:03

0001 #ifndef BOOST_RECURSIVE_MUTEX_WIN32_HPP
0002 #define BOOST_RECURSIVE_MUTEX_WIN32_HPP
0003 
0004 //  recursive_mutex.hpp
0005 //
0006 //  (C) Copyright 2006-7 Anthony Williams
0007 //
0008 //  Distributed under the Boost Software License, Version 1.0. (See
0009 //  accompanying file LICENSE_1_0.txt or copy at
0010 //  http://www.boost.org/LICENSE_1_0.txt)
0011 
0012 
0013 #include <boost/thread/win32/basic_recursive_mutex.hpp>
0014 #include <boost/thread/exceptions.hpp>
0015 #include <boost/thread/detail/delete.hpp>
0016 #if defined BOOST_THREAD_PROVIDES_NESTED_LOCKS
0017 #include <boost/thread/lock_types.hpp>
0018 #endif
0019 
0020 #include <boost/config/abi_prefix.hpp>
0021 
0022 namespace boost
0023 {
0024     class recursive_mutex:
0025         public ::boost::detail::basic_recursive_mutex
0026     {
0027     public:
0028         BOOST_THREAD_NO_COPYABLE(recursive_mutex)
0029         recursive_mutex()
0030         {
0031             ::boost::detail::basic_recursive_mutex::initialize();
0032         }
0033         ~recursive_mutex()
0034         {
0035             ::boost::detail::basic_recursive_mutex::destroy();
0036         }
0037 
0038 #if defined BOOST_THREAD_PROVIDES_NESTED_LOCKS
0039         typedef unique_lock<recursive_mutex> scoped_lock;
0040         typedef detail::try_lock_wrapper<recursive_mutex> scoped_try_lock;
0041 #endif
0042     };
0043 
0044     typedef recursive_mutex recursive_try_mutex;
0045 
0046     class recursive_timed_mutex:
0047         public ::boost::detail::basic_recursive_timed_mutex
0048     {
0049     public:
0050         BOOST_THREAD_NO_COPYABLE(recursive_timed_mutex)
0051         recursive_timed_mutex()
0052         {
0053             ::boost::detail::basic_recursive_timed_mutex::initialize();
0054         }
0055         ~recursive_timed_mutex()
0056         {
0057             ::boost::detail::basic_recursive_timed_mutex::destroy();
0058         }
0059 
0060 #if defined BOOST_THREAD_PROVIDES_NESTED_LOCKS
0061         typedef unique_lock<recursive_timed_mutex> scoped_timed_lock;
0062         typedef detail::try_lock_wrapper<recursive_timed_mutex> scoped_try_lock;
0063         typedef scoped_timed_lock scoped_lock;
0064 #endif
0065     };
0066 }
0067 
0068 #include <boost/config/abi_suffix.hpp>
0069 
0070 #endif