/usr/include/boost/thread
NameSizeModeActions
concurrent_queues/-0755rm
csbl/-0755rm
detail/-0755rm
executors/-0755rm
experimental/-0755rm
futures/-0755rm
pthread/-0755rm
v2/-0755rm
win32/-0755rm
barrier.hpp74210644editdlrm
caller_context.hpp15260644editdlrm
completion_latch.hpp65790644editdlrm
condition.hpp4900644editdlrm
condition_variable.hpp6340644editdlrm
cv_status.hpp5310644editdlrm
exceptional_ptr.hpp10980644editdlrm
exceptions.hpp62860644editdlrm
executor.hpp4760644editdlrm
externally_locked.hpp107920644editdlrm
externally_locked_stream.hpp47840644editdlrm
future.hpp2037920644editdlrm
interruption.hpp5960644editdlrm
is_locked_by_this_thread.hpp10620644editdlrm
latch.hpp49670644editdlrm
lockable_adapter.hpp60430644editdlrm
lockable_concepts.hpp41140644editdlrm
lockable_traits.hpp78530644editdlrm
locks.hpp5720644editdlrm
lock_algorithms.hpp132010644editdlrm
lock_concepts.hpp47920644editdlrm
lock_factories.hpp23170644editdlrm
lock_guard.hpp22900644editdlrm
lock_options.hpp7010644editdlrm
lock_traits.hpp12340644editdlrm
lock_types.hpp344180644editdlrm
mutex.hpp11660644editdlrm
null_mutex.hpp63460644editdlrm
once.hpp13240644editdlrm
ostream_buffer.hpp9250644editdlrm
poly_lockable.hpp21000644editdlrm
poly_lockable_adapter.hpp21240644editdlrm
poly_shared_lockable.hpp58070644editdlrm
poly_shared_lockable_adapter.hpp47920644editdlrm
recursive_mutex.hpp15350644editdlrm
reverse_lock.hpp13160644editdlrm
scoped_thread.hpp85470644editdlrm
shared_lock_guard.hpp11920644editdlrm
shared_mutex.hpp14000644editdlrm
strict_lock.hpp62460644editdlrm
synchronized_value.hpp311100644editdlrm
sync_bounded_queue.hpp5950644editdlrm
sync_queue.hpp5710644editdlrm
testable_mutex.hpp39250644editdlrm
thread.hpp3850644editdlrm
thread_functors.hpp13660644editdlrm
thread_guard.hpp10690644editdlrm
thread_only.hpp8030644editdlrm
thread_pool.hpp5310644editdlrm
thread_time.hpp15900644editdlrm
tss.hpp26030644editdlrm
user_scheduler.hpp52220644editdlrm
with_lock_guard.hpp60520644editdlrm
xtime.hpp23900644editdlrm
Edit: /usr/include/boost/thread/null_mutex.hpp (6346B)
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Vicente J. Botet Escriba 2008-2009,2012. 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/thread for documentation. // ////////////////////////////////////////////////////////////////////////////// #ifndef BOOST_THREAD_NULL_MUTEX_HPP #define BOOST_THREAD_NULL_MUTEX_HPP #include #include #include /// \file /// Describes null_mutex class namespace boost { /// Implements a mutex that simulates a mutex without doing any operation and /// simulates a successful operation. class null_mutex { public: BOOST_THREAD_NO_COPYABLE( null_mutex) /*< no copyable >*/ null_mutex() {} /// Simulates a mutex lock() operation. Empty function. void lock() { } /// Simulates a mutex try_lock() operation. /// Equivalent to "return true;" bool try_lock() { return true; } /// Simulates a mutex unlock() operation. /// Empty function. void unlock() { } #ifdef BOOST_THREAD_USES_CHRONO /// Simulates a mutex try_lock_until() operation. /// Equivalent to "return true;" template bool try_lock_until(chrono::time_point const &) { return true; } /// Simulates a mutex try_lock_for() operation. /// Equivalent to "return true;" template bool try_lock_for(chrono::duration const &) { return true; } #endif /// Simulates a mutex lock_shared() operation. /// Empty function. void lock_shared() { } /// Simulates a mutex try_lock_shared() operation. /// Equivalent to "return true;" bool try_lock_shared() { return true; } /// Simulates a mutex unlock_shared() operation. /// Empty function. void unlock_shared() { } /// Simulates a mutex try_lock_shared_until() operation. /// Equivalent to "return true;" template bool try_lock_shared_until(chrono::time_point const &) { return true; } /// Simulates a mutex try_lock_shared_for() operation. /// Equivalent to "return true;" template bool try_lock_shared_for(chrono::duration const &) { return true; } /// Simulates a mutex lock_upgrade() operation. /// Empty function. void lock_upgrade() { } /// Simulates a mutex try_lock_upgrade() operation. /// Equivalent to "return true;" bool try_lock_upgrade() { return true; } /// Simulates a mutex unlock_upgrade() operation. /// Empty function. void unlock_upgrade() { } /// Simulates a mutex try_lock_upgrade_until() operation. /// Equivalent to "return true;" template bool try_lock_upgrade_until(chrono::time_point const &) { return true; } /// Simulates a mutex try_lock_upgrade_for() operation. /// Equivalent to "return true;" template bool try_lock_upgrade_for(chrono::duration const &) { return true; } /// Simulates a mutex try_unlock_shared_and_lock() operation. /// Equivalent to "return true;" bool try_unlock_shared_and_lock() { return true; } #ifdef BOOST_THREAD_USES_CHRONO /// Simulates a mutex try_unlock_shared_and_lock_until() operation. /// Equivalent to "return true;" template bool try_unlock_shared_and_lock_until(chrono::time_point const &) { return true; } /// Simulates a mutex try_unlock_shared_and_lock_for() operation. /// Equivalent to "return true;" template bool try_unlock_shared_and_lock_for(chrono::duration const &) { return true; } #endif /// Simulates unlock_and_lock_shared(). /// Empty function. void unlock_and_lock_shared() { } /// Simulates a mutex try_unlock_shared_and_lock_upgrade() operation. /// Equivalent to "return true;" bool try_unlock_shared_and_lock_upgrade() { return true; } #ifdef BOOST_THREAD_USES_CHRONO /// Simulates a mutex try_unlock_shared_and_lock_upgrade_until() operation. /// Equivalent to "return true;" template bool try_unlock_shared_and_lock_upgrade_until(chrono::time_point const &) { return true; } /// Simulates a mutex try_unlock_shared_and_lock_upgrade_for() operation. /// Equivalent to "return true;" template bool try_unlock_shared_and_lock_upgrade_for(chrono::duration const &) { return true; } #endif /// Simulates unlock_and_lock_upgrade(). /// Empty function. void unlock_and_lock_upgrade() { } /// Simulates unlock_upgrade_and_lock(). /// Empty function. void unlock_upgrade_and_lock() { } /// Simulates a mutex try_unlock_upgrade_and_lock() operation. /// Equivalent to "return true;" bool try_unlock_upgrade_and_lock() { return true; } #ifdef BOOST_THREAD_USES_CHRONO /// Simulates a mutex try_unlock_upgrade_and_lock_until() operation. /// Equivalent to "return true;" template bool try_unlock_upgrade_and_lock_until(chrono::time_point const &) { return true; } /// Simulates a mutex try_unlock_upgrade_and_lock_for() operation. /// Equivalent to "return true;" template bool try_unlock_upgrade_and_lock_for(chrono::duration const &) { return true; } #endif /// Simulates unlock_upgrade_and_lock_shared(). /// Empty function. void unlock_upgrade_and_lock_shared() { } }; } //namespace boost { #endif