Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Go to the documentation of this file.
17 #ifndef __TBB_queuing_mutex_H
18 #define __TBB_queuing_mutex_H
20 #define __TBB_queuing_mutex_H_include_area
36 #if TBB_USE_THREADING_TOOLS
111 #undef __TBB_queuing_mutex_H_include_area
The scoped locking pattern.
queuing_mutex * mutex
The pointer to the mutex owned, or NULL if not holding a mutex.
Base class for types that should not be copied or assigned.
Queuing mutex with local-only spinning.
void __TBB_EXPORTED_METHOD acquire(queuing_mutex &m)
Acquire lock on given mutex.
void poison_pointer(T *__TBB_atomic &)
void initialize()
Initialize fields to mean "no lock held".
queuing_mutex()
Construct unacquired mutex.
atomic< scoped_lock * > q_tail
The last competitor requesting the lock.
void __TBB_EXPORTED_METHOD internal_construct()
void __TBB_EXPORTED_METHOD release()
Release lock.
static const bool is_rw_mutex
static const bool is_fair_mutex
static const bool is_recursive_mutex
bool __TBB_EXPORTED_METHOD try_acquire(queuing_mutex &m)
Acquire lock on given mutex if free (i.e. non-blocking)
uintptr_t going
The local spin-wait variable.
scoped_lock()
Construct lock that has not acquired a mutex.
~scoped_lock()
Release lock (if lock is held).
#define __TBB_DEFINE_PROFILING_SET_NAME(sync_object_type)
#define __TBB_EXPORTED_METHOD
scoped_lock * next
The pointer to the next competitor for a mutex.
scoped_lock(queuing_mutex &m)
Acquire lock on given mutex.
Copyright © 2005-2020 Intel Corporation. All Rights Reserved.
Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
registered trademarks or trademarks of Intel Corporation or its
subsidiaries in the United States and other countries.
* Other names and brands may be claimed as the property of others.