Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::sys::Mutex Class Referenceabstract

#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 Mutexmake (void) throw (SystemException)
 

Detailed Description

System-independent implementation of a mutex.

Constructor & Destructor Documentation

elm::sys::Mutex::~Mutex ( void  )
virtual

Member Function Documentation

void elm::sys::Mutex::lock ( void  )
throw (SystemException
)
pure virtual

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

Exceptions
SystemExceptionNo more place in waiting queue.
Mutex * elm::sys::Mutex::make ( void  )
throw (SystemException
)
static

Build a new mutex.

Returns
Created mutex.
Exceptions
SystemExceptionIf the mutex cannot be created.
virtual bool elm::sys::Mutex::tryLock ( void  )
throw (SystemException
)
pure virtual
void elm::sys::Mutex::unlock ( void  )
throw (SystemException
)
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: