#include <cel_syncobjs.h>
Public Member Functions | |
NamedMutex (const String &inName) | |
~NamedMutex () | |
virtual void | lock () const |
virtual void | unlock () const |
This class implements Named mutex.
Named mutex is a inter-process mutex.
Celartem::NamedMutex::NamedMutex | ( | const String & | inName | ) |
Initializes new instance.
inName | Name of the newly created NamedMutex instance. |
Celartem::NamedMutex::~NamedMutex | ( | ) |
Uninitializes the instance.
|
virtual |
Locks the mutex. NamedMutex does not accept recursive lock and it actually cause dead-lock. For exception-safe programming, you should use Locker class instead of calling lock and unlock directly.
Implements Celartem::Lockable.
|
virtual |
Unlocks the mutex.
For exception-safe programming, you should use Locker class instead of calling lock and unlock directly.
Implements Celartem::Lockable.