Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MCTestMutex Class Reference

Base class for mutex objects which can be test locked. More...

#include <mcllib/MCTestMutex.h>

Inheritance diagram for MCTestMutex:

MCMutex MCFileMutex List of all members.

Public Member Functions

virtual bool testLock ()=0
 Attempt to obtain the lock.

Detailed Description

Base class for mutex objects which can be test locked.

A test lock attempts to obtain the lock without waiting if the lock cannot be obtained.


Member Function Documentation

virtual bool testLock  )  [pure virtual]
 

Attempt to obtain the lock.

Returns:
true if the mutex has been locked, false if the mutex could not be locked.

Implemented in MCFileMutex.


Generated on Wed Jan 12 19:05:50 2005 for MCLLIB by  doxygen 1.3.9.1