Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Mutex Class Referenceabstract

#include <elm/sys/Thread.h>

Public Member Functions

virtual ~Mutex (void)
 
virtual void lock (void)=0
 
virtual void unlock (void)=0
 
virtual bool tryLock (void)=0
 

Static Public Member Functions

static Mutexmake (void)
 

Detailed Description

System-independent implementation of a mutex.

Constructor & Destructor Documentation

◆ ~Mutex()

~Mutex ( void  )
virtual

Member Function Documentation

◆ lock()

void lock ( void  )
pure virtual

Acquire the mutex. If mutex is not available, block until it becomes available.

Exceptions
SystemExceptionNo more place in waiting queue.

◆ make()

Mutex * make ( void  )
static

Build a new mutex.

Returns
Created mutex.
Exceptions
SystemExceptionIf the mutex cannot be created.

◆ tryLock()

virtual bool tryLock ( void  )
pure virtual

◆ unlock()

void unlock ( void  )
pure virtual

Release a mutex acquired by the current thread.

Exceptions
SystemExceptionMutex not owned by the current thread.

The documentation for this class was generated from the following files: