Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/sys/Thread.h>
Public Member Functions | |
virtual | ~Mutex (void) |
virtual void | lock (void)=0 throw (SystemException) |
virtual void | unlock (void)=0 throw (SystemException) |
virtual bool | tryLock (void)=0 throw (SystemException) |
Static Public Member Functions | |
static Mutex * | make (void) throw (SystemException) |
System-independent implementation of a mutex.
|
virtual |
|
pure virtual |
Acquire the mutex. If mutex is not available, block until it becomes available.
SystemException | No more place in waiting queue. |
|
static |
|
pure virtual |
|
pure virtual |
Release a mutex acquired by the current thread.
SystemException | Mutex not owned by the current thread. |