Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-08 08:08:58

0001  //////////////////////////////////////////////////////////////////////////////
0002 //
0003 // (C) Copyright Ion Gaztanaga 2011-2012. Distributed under the Boost
0004 // Software License, Version 1.0. (See accompanying file
0005 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 // See http://www.boost.org/libs/interprocess for documentation.
0008 //
0009 //////////////////////////////////////////////////////////////////////////////
0010 #ifndef BOOST_INTERPROCESS_WINDOWS_RECURSIVE_NAMED_MUTEX_HPP
0011 #define BOOST_INTERPROCESS_WINDOWS_RECURSIVE_NAMED_MUTEX_HPP
0012 
0013 #ifndef BOOST_CONFIG_HPP
0014 #  include <boost/config.hpp>
0015 #endif
0016 0017 ">#
0018 #if defined(BOOST_HAS_PRAGMA_ONCE)
0019 #  pragma once
0020 #endif
0021 
0022 #include <boost/interprocess/detail/config_begin.hpp>
0023 #include <boost/interprocess/detail/workaround.hpp>
0024 #include <boost/interprocess/sync/windows/named_mutex.hpp>
0025 
0026 namespace boost {
0027 namespace interprocess {
0028 namespace ipcdetail {
0029 
0030 
0031 class winapi_named_recursive_mutex
0032    //Windows mutexes based on CreateMutex are already recursive...
0033    : public winapi_named_mutex
0034 {
0035    #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED)
0036 
0037    //Non-copyable
0038    winapi_named_recursive_mutex();
0039    winapi_named_recursive_mutex(const winapi_named_mutex &);
0040    winapi_named_recursive_mutex &operator=(const winapi_named_mutex &);
0041    #endif   //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED
0042 
0043    public:
0044    winapi_named_recursive_mutex(create_only_t, const char *name, const permissions &perm = permissions())
0045       : winapi_named_mutex(create_only_t(), name, perm)
0046    {}
0047 
0048    winapi_named_recursive_mutex(open_or_create_t, const char *name, const permissions &perm = permissions())
0049       : winapi_named_mutex(open_or_create_t(), name, perm)
0050    {}
0051 
0052    winapi_named_recursive_mutex(open_only_t, const char *name)
0053       : winapi_named_mutex(open_only_t(), name)
0054    {}
0055 
0056    winapi_named_recursive_mutex(create_only_t, const wchar_t *name, const permissions &perm = permissions())
0057       : winapi_named_mutex(create_only_t(), name, perm)
0058    {}
0059 
0060    winapi_named_recursive_mutex(open_or_create_t, const wchar_t *name, const permissions &perm = permissions())
0061       : winapi_named_mutex(open_or_create_t(), name, perm)
0062    {}
0063 
0064    winapi_named_recursive_mutex(open_only_t, const wchar_t *name)
0065       : winapi_named_mutex(open_only_t(), name)
0066    {}
0067 };
0068 
0069 }  //namespace ipcdetail {
0070 }  //namespace interprocess {
0071 }  //namespace boost {
0072 
0073 #include <boost/interprocess/detail/config_end.hpp>
0074 
0075 #endif   //BOOST_INTERPROCESS_WINDOWS_RECURSIVE_NAMED_MUTEX_HPP