124using namespace Aleph;
157 <<
"unlock: nullptr pointer to mutex";
171 <<
"lock: nullptr pointer to mutex";
221# define CTOR_USE_MUTEX(name, mutex) name(mutex)
225# define CTOR_INH_USE_MUTEX(mutex) UseMutex(mutex)
229# define USE_MUTEX(name, mutex) UseMutex name(mutex)
233# define CRITICAL_SECTION(mutex) UseMutex critical_section(mutex)
Exception handling system with formatted messages for Aleph-w.
#define ah_domain_error_if(C)
Throws std::domain_error if condition holds.
Core definitions, constants, and utility macros for Aleph-w.
General utility functions and helpers.
RAII-style mutex lock guard.
void disallow_unlock()
Prevent automatic unlock on destruction.
void unlock()
Explicitly unlock the mutex.
UseMutex(pthread_mutex_t *m)
Construct and lock (pointer version)
void leave()
Alias for unlock()
void lock()
Explicitly lock the mutex.
UseMutex(pthread_mutex_t &m)
Construct and lock (reference version)
void allow_unlock()
Allow automatic unlock on destruction (default)
void enter()
Alias for lock()
~UseMutex()
Destructor - unlocks if allowed.
Main namespace for Aleph-w library functions.
DynList< T > maps(const C &c, Op op)
Classic map operation.
void init_mutex(pthread_mutex_t *)
Initialize a pthread mutex (pointer version)
void destroy_mutex(pthread_mutex_t *)
Destroy a pthread mutex (pointer version)