5 #include <libutl/host_thread.h> 6 #include <libutl/NamedObjectMI.h> 38 bool haveLock()
const;
57 #if UTL_HOST_OS == UTL_OS_MINGW 61 pthread_mutex_t _mutex;
63 thread_handle_t _owner;
144 if (_mutex !=
nullptr)
void unlock()
Unlock the Mutex.
void deInit()
De-initialize UTL++.
void lock(Mutex *mutex)
Lock a Mutex.
MutexGuard(Mutex *mutex)
Constructor.
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
MutexGuard()
Default constructor.
bool trylock(Mutex *mutex)
Lock a new Mutex.
#define UTL_CLASS_NO_COPY
Declare that a class cannot do copy().
bool trylock()
Try to obtain the lock (without blocking).
void lock()
Obtain the lock (blocking if necessary).
Root of UTL++ class hierarchy.
void init()
Initialize UTL++.
#define ASSERTD
Do an assertion in DEBUG mode only.
Acquire/release a Mutex RAII-style.