/usr/include/boost/container/detail
NameSizeModeActions
adaptive_node_pool.hpp55690644editdlrm
adaptive_node_pool_impl.hpp540880644editdlrm
addressof.hpp10630644editdlrm
advanced_insert_int.hpp176680644editdlrm
algorithm.hpp38800644editdlrm
allocation_type.hpp20170644editdlrm
allocator_version_traits.hpp56320644editdlrm
alloc_helpers.hpp18670644editdlrm
alloc_lib.h117420644editdlrm
auto_link.hpp16570644editdlrm
block_list.hpp41990644editdlrm
block_slist.hpp45030644editdlrm
compare_functors.hpp39920644editdlrm
config_begin.hpp36370644editdlrm
config_end.hpp4800644editdlrm
construct_in_place.hpp29520644editdlrm
container_or_allocator_rebind.hpp17430644editdlrm
container_rebind.hpp66100644editdlrm
copy_move_algo.hpp385310644editdlrm
destroyers.hpp93380644editdlrm
dispatch_uses_allocator.hpp197330644editdlrm
dlmalloc.hpp34440644editdlrm
flat_tree.hpp616630644editdlrm
function_detector.hpp35580644editdlrm
is_container.hpp22130644editdlrm
is_contiguous_container.hpp17120644editdlrm
is_sorted.hpp14650644editdlrm
iterator.hpp25900644editdlrm
iterators.hpp298820644editdlrm
iterator_to_raw_pointer.hpp9710644editdlrm
math_functions.hpp38720644editdlrm
minimal_char_traits_header.hpp10570644editdlrm
min_max.hpp9970644editdlrm
mpl.hpp38340644editdlrm
multiallocation_chain.hpp103170644editdlrm
mutex.hpp86650644editdlrm
next_capacity.hpp21400644editdlrm
node_alloc_holder.hpp176510644editdlrm
node_pool.hpp48080644editdlrm
node_pool_impl.hpp131710644editdlrm
pair.hpp212810644editdlrm
pair_key_mapped_of_value.hpp14660644editdlrm
placement_new.hpp9140644editdlrm
pool_common.hpp16060644editdlrm
pool_common_alloc.hpp27300644editdlrm
pool_resource.hpp77440644editdlrm
singleton.hpp44650644editdlrm
std_fwd.hpp14500644editdlrm
thread_mutex.hpp44490644editdlrm
transform_iterator.hpp51030644editdlrm
tree.hpp570380644editdlrm
type_traits.hpp27140644editdlrm
value_functors.hpp11180644editdlrm
value_init.hpp11350644editdlrm
variadic_templates_tools.hpp49590644editdlrm
version_type.hpp24160644editdlrm
workaround.hpp45010644editdlrm
Edit: /usr/include/boost/container/detail/thread_mutex.hpp (4449B)
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2018-2018. 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) // // See http://www.boost.org/libs/interprocess for documentation. // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // // This code is partially based on the lightweight mutex implemented // by Boost.SmartPtr: // // Copyright (c) 2002, 2003 Peter Dimov // Copyright (c) Microsoft Corporation 2014 // // 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) // ////////////////////////////////////////////////////////////////////////////// #ifndef BOOST_CONFIG_HPP # include #endif # #if defined(BOOST_HAS_PRAGMA_ONCE) # pragma once #endif #ifndef BOOST_CONTAINER_DETAIL_THREAD_MUTEX_HPP #define BOOST_CONTAINER_DETAIL_THREAD_MUTEX_HPP #include #include #if defined(BOOST_HAS_PTHREADS) #include #include namespace boost{ namespace container { namespace dtl { class thread_mutex { public: thread_mutex() { BOOST_VERIFY(pthread_mutex_init(&m_mut, 0) == 0); } ~thread_mutex() { BOOST_VERIFY(pthread_mutex_destroy(&m_mut) == 0); } void lock() { BOOST_VERIFY(pthread_mutex_lock( &m_mut) == 0); } void unlock() { BOOST_VERIFY(pthread_mutex_unlock(&m_mut) == 0); } private: thread_mutex(thread_mutex const &); thread_mutex & operator=(thread_mutex const &); pthread_mutex_t m_mut; }; } // namespace dtl { } // namespace container { } // namespace boost { #else //!BOOST_HAS_PTHREADS (Windows implementation) #ifdef BOOST_USE_WINDOWS_H #include namespace boost{ namespace container { namespace dtl { typedef ::CRITICAL_SECTION win_critical_section; } // namespace dtl { } // namespace container { } // namespace boost { #else //! BOOST_USE_WINDOWS_H struct _RTL_CRITICAL_SECTION_DEBUG; struct _RTL_CRITICAL_SECTION; namespace boost{ namespace container { namespace dtl { #ifdef BOOST_PLAT_WINDOWS_UWP extern "C" __declspec(dllimport) int __stdcall InitializeCriticalSectionEx(::_RTL_CRITICAL_SECTION *, unsigned long, unsigned long); #else extern "C" __declspec(dllimport) void __stdcall InitializeCriticalSection(::_RTL_CRITICAL_SECTION *); #endif extern "C" __declspec(dllimport) void __stdcall EnterCriticalSection(::_RTL_CRITICAL_SECTION *); extern "C" __declspec(dllimport) void __stdcall LeaveCriticalSection(::_RTL_CRITICAL_SECTION *); extern "C" __declspec(dllimport) void __stdcall DeleteCriticalSection(::_RTL_CRITICAL_SECTION *); struct win_critical_section { struct _RTL_CRITICAL_SECTION_DEBUG * DebugInfo; long LockCount; long RecursionCount; void * OwningThread; void * LockSemaphore; #if defined(_WIN64) unsigned __int64 SpinCount; #else unsigned long SpinCount; #endif }; } // namespace dtl { } // namespace container { } // namespace boost { #endif //BOOST_USE_WINDOWS_H namespace boost{ namespace container { namespace dtl { class thread_mutex { public: thread_mutex() { #ifdef BOOST_PLAT_WINDOWS_UWP (InitializeCriticalSectionEx)(reinterpret_cast< ::_RTL_CRITICAL_SECTION* >(&m_crit_sect), 4000, 0); #else (InitializeCriticalSection)(reinterpret_cast< ::_RTL_CRITICAL_SECTION* >(&m_crit_sect)); #endif } void lock() { (EnterCriticalSection)(reinterpret_cast< ::_RTL_CRITICAL_SECTION* >(&m_crit_sect)); } void unlock() { (LeaveCriticalSection)(reinterpret_cast< ::_RTL_CRITICAL_SECTION* >(&m_crit_sect)); } ~thread_mutex() { (DeleteCriticalSection)(reinterpret_cast< ::_RTL_CRITICAL_SECTION* >(&m_crit_sect)); } private: thread_mutex(thread_mutex const &); thread_mutex & operator=(thread_mutex const &); win_critical_section m_crit_sect; }; } // namespace dtl { } // namespace container { } // namespace boost { #endif //BOOST_HAS_PTHREADS #include #endif // #ifndef BOOST_CONTAINER_DETAIL_THREAD_MUTEX_HPP