Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

mpcl::system::TMutex Class Reference

#include <mutex.hh>

Inheritance diagram for mpcl::system::TMutex:

mpcl::system::IMutex List of all members.

Public Methods

 TMutex (void) throw (TErrorException)
 Builds a new instance.

 ~TMutex () throw (TErrorException)
 Destroys the instance.

void lock (void) throw (TErrorException)
 Lock mutex.

void unlock (void) throw (TErrorException)
 Unlock mutex.

bool tryLock (void)

Friends

class TCondition
 For accessing tPosixId from TCondition.


Detailed Description

Mutex for POSIX operating system class.
See also:
TOperatingSystem.

Definition at line 47 of file posix_1/mutex.hh.


Member Function Documentation

bool mpcl::system::TMutex::tryLock void    [inline, virtual]
 

Lock mutex if unlocked, if not, then it returns false.

Returns:
True if unlocked (locking it, if so).

Implements mpcl::system::IMutex.

Definition at line 112 of file posix_1/mutex.hh.


The documentation for this class was generated from the following file:
Generated on Mon Oct 13 02:35:25 2003 for MPCL by doxygen1.2.18