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.
Main namespace for Aleph-w library functions.
Divide_Conquer_DP_Result< Cost > divide_and_conquer_partition_dp(const size_t groups, const size_t n, Transition_Cost_Fn transition_cost, const Cost inf=dp_optimization_detail::default_inf< Cost >())
Optimize partition DP using divide-and-conquer optimization.
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)