Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Mutex that allows recursive mutex acquisition. More...
#include <recursive_mutex.h>
Classes | |
class | scoped_lock |
The scoped locking pattern. More... | |
Public Types | |
typedef pthread_mutex_t * | native_handle_type |
Return native_handle. More... | |
Public Member Functions | |
recursive_mutex () | |
Construct unacquired recursive_mutex. More... | |
~recursive_mutex () | |
void | lock () |
Acquire lock. More... | |
bool | try_lock () |
Try acquiring lock (non-blocking) More... | |
void | unlock () |
Release lock. More... | |
native_handle_type | native_handle () |
Static Public Attributes | |
static const bool | is_rw_mutex = false |
static const bool | is_recursive_mutex = true |
static const bool | is_fair_mutex = false |
Private Member Functions | |
void __TBB_EXPORTED_METHOD | internal_construct () |
All checks from mutex constructor using mutex.state were moved here. More... | |
void __TBB_EXPORTED_METHOD | internal_destroy () |
All checks from mutex destructor using mutex.state were moved here. More... | |
Private Attributes | |
pthread_mutex_t | impl |
Friends | |
class | scoped_lock |
Mutex that allows recursive mutex acquisition.
Mutex that allows recursive mutex acquisition.
Definition at line 35 of file recursive_mutex.h.
typedef pthread_mutex_t* tbb::recursive_mutex::native_handle_type |
Return native_handle.
Definition at line 204 of file recursive_mutex.h.
|
inline |
Construct unacquired recursive_mutex.
Definition at line 38 of file recursive_mutex.h.
References tbb::internal::handle_perror(), impl, and internal_construct().
|
inline |
Definition at line 60 of file recursive_mutex.h.
References impl, and internal_destroy().
|
private |
All checks from mutex constructor using mutex.state were moved here.
Definition at line 93 of file recursive_mutex.cpp.
References _T, tbb::internal::handle_perror(), impl, and ITT_SYNC_CREATE.
Referenced by recursive_mutex().
|
private |
All checks from mutex destructor using mutex.state were moved here.
Definition at line 112 of file recursive_mutex.cpp.
References __TBB_ASSERT, __TBB_ASSERT_EX, and impl.
Referenced by ~recursive_mutex().
|
inline |
Acquire lock.
Definition at line 154 of file recursive_mutex.h.
References tbb::aligned_space< T, N >::begin(), tbb::internal::handle_perror(), impl, and scoped_lock.
|
inline |
Definition at line 206 of file recursive_mutex.h.
References impl.
|
inline |
Try acquiring lock (non-blocking)
Return true if lock acquired; false otherwise.
Definition at line 171 of file recursive_mutex.h.
References tbb::aligned_space< T, N >::begin(), and impl.
|
inline |
Release lock.
Definition at line 185 of file recursive_mutex.h.
References tbb::aligned_space< T, N >::begin(), impl, and s.
Referenced by tbb::recursive_mutex::scoped_lock::release().
|
friend |
Definition at line 73 of file recursive_mutex.h.
Referenced by lock().
|
private |
Definition at line 216 of file recursive_mutex.h.
Referenced by tbb::recursive_mutex::scoped_lock::internal_acquire(), internal_construct(), internal_destroy(), tbb::recursive_mutex::scoped_lock::internal_try_acquire(), lock(), native_handle(), recursive_mutex(), try_lock(), unlock(), and ~recursive_mutex().
|
static |
Definition at line 149 of file recursive_mutex.h.
|
static |
Definition at line 148 of file recursive_mutex.h.
|
static |
Definition at line 147 of file recursive_mutex.h.