18 MutexHolder(
const Mutex &mutex) {
19 #if defined(HAVE_THREADS) || defined(DEBUG_THREADS)
30 MutexHolder(
const Mutex &mutex,
Thread *current_thread) {
31 #if defined(HAVE_THREADS) || defined(DEBUG_THREADS)
48 MutexHolder(
Mutex *&mutex) {
49 #if defined(HAVE_THREADS) || defined(DEBUG_THREADS)
50 if (mutex ==
nullptr) {
63 #if defined(HAVE_THREADS) || defined(DEBUG_THREADS)
void acquire() const
Grabs the mutex if it is available.
A standard mutex, or mutual exclusion lock.
A thread; that is, a lightweight process.