17 #ifndef __TBB_queuing_mutex_H 18 #define __TBB_queuing_mutex_H 33 #if TBB_USE_THREADING_TOOLS static const bool is_fair_mutex
queuing_mutex * mutex
The pointer to the mutex owned, or NULL if not holding a mutex.
Queuing mutex with local-only spinning.
atomic< scoped_lock * > q_tail
The last competitor requesting the lock.
Primary template for atomic.
#define __TBB_EXPORTED_METHOD
uintptr_t going
The local spin-wait variable.
scoped_lock(queuing_mutex &m)
Acquire lock on given mutex.
scoped_lock * next
The pointer to the next competitor for a mutex.
Wrapper around the platform's native lock.
static const bool is_rw_mutex
void __TBB_EXPORTED_METHOD release()
Release lock.
queuing_mutex()
Construct unacquired mutex.
scoped_lock()
Construct lock that has not acquired a mutex.
static const bool is_recursive_mutex
void __TBB_EXPORTED_METHOD internal_construct()
~scoped_lock()
Release lock (if lock is held).
void initialize()
Initialize fields to mean "no lock held".
void poison_pointer(T *__TBB_atomic &)
The scoped locking pattern.
bool __TBB_EXPORTED_METHOD try_acquire(queuing_mutex &m)
Acquire lock on given mutex if free (i.e. non-blocking)
void __TBB_EXPORTED_METHOD acquire(queuing_mutex &m)
Acquire lock on given mutex.
#define __TBB_DEFINE_PROFILING_SET_NAME(sync_object_type)