Public Member Functions | List of all members
Celartem::NamedMutex Class Reference

#include <cel_syncobjs.h>

Inheritance diagram for Celartem::NamedMutex:
Inheritance graph
[legend]

Public Member Functions

 NamedMutex (const String &inName)
 
 ~NamedMutex ()
 
virtual void lock () const
 
virtual void unlock () const
 

Detailed Description

This class implements Named mutex.
Named mutex is a inter-process mutex.

See Also
Mutex, Lockable, Locker

Constructor & Destructor Documentation

Celartem::NamedMutex::NamedMutex ( const String inName)

Initializes new instance.

Parameters
inNameName of the newly created NamedMutex instance.
Celartem::NamedMutex::~NamedMutex ( )

Uninitializes the instance.

Member Function Documentation

virtual void Celartem::NamedMutex::lock ( ) const
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.

See Also
Locker

Implements Celartem::Lockable.

virtual void Celartem::NamedMutex::unlock ( ) const
virtual

Unlocks the mutex.
For exception-safe programming, you should use Locker class instead of calling lock and unlock directly.

See Also
Locker

Implements Celartem::Lockable.


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

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:06.
Cuminas Logo