130using namespace Aleph;
166 <<
"unlock: nullptr pointer to mutex";
180 <<
"lock: nullptr pointer to mutex";
230# define CTOR_USE_MUTEX(name, mutex) name(mutex)
234# define CTOR_INH_USE_MUTEX(mutex) UseMutex(mutex)
238# define USE_MUTEX(name, mutex) UseMutex name(mutex)
242# 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.
Legacy 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.
size_t blossom_maximum_cardinality_matching(const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA())
Alias of compute_maximum_cardinality_general_matching().
Main namespace for Aleph-w library functions.
FooMap m(5, fst_unit_pair_hash, snd_unit_pair_hash)
void init_mutex(pthread_mutex_t *)
Initialize a pthread mutex (pointer version)
void destroy_mutex(pthread_mutex_t *)
Destroy a pthread mutex (pointer version)