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

NullLockable Class Reference

#include <NullLockable.h>

Inheritance diagram for NullLockable:

Lockable List of all members.

Public Methods

 NullLockable ()
 Create a new NullLockable.

virtual ~NullLockable () throw ()
 Destroy a NullLockable.

virtual void acquire ()
virtual bool tryAcquire (unsigned long)
virtual void release ()

Detailed Description

Author:
Eric Crahen <crahen@cse.buffalo.edu>
Date:
<2002-05-30T19:56:19-0400>
Version:
2.2.0
A NullLockable is an application of the Null Object pattern. It implements a Lockable object that does nothing. This type can be subsitituted into many of ZThreads parametized classes to create single implementation that perform no real locking.


Member Function Documentation

virtual void acquire   [inline, virtual]
 

Do nothing

Exceptions:
Synchronization_Exception  never thrown

Implements Lockable.

virtual void release   [inline, virtual]
 

Do nothing

Exceptions:
Synchronization_Exception  never thrown

Implements Lockable.

virtual bool tryAcquire unsigned    long [inline, virtual]
 

Do nothing

Returns :
bool false, always.
Exceptions:
Synchronization_Exception  never thrown

Implements Lockable.


The documentation for this class was generated from the following file:
Generated on Tue Aug 27 07:43:13 2002 for ZThread by doxygen1.2.17