Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

LOW_device::linkLock Class Reference

Locking class to ensure exclusive access to a device. More...

#include <LOW_device.h>

Inheritance diagram for LOW_device::linkLock:

Inheritance graph
[legend]
Collaboration diagram for LOW_device::linkLock:

Collaboration graph
[legend]
List of all members.

Public Methods

 linkLock (const LOW_device &inDev)
 Obtain the lock. More...

 ~linkLock ()
 Release the lock. More...


Detailed Description

Locking class to ensure exclusive access to a device.

The class is intended to be used in a "locking is creation" design pattern. On creation an exclusive loxk is optained for the device, and on destruction the lock is released.

Implemented by obtaining a LOW_link::commLock for the link the device is on.

Definition at line 113 of file LOW_device.h.


Constructor & Destructor Documentation

LOW_device::linkLock::linkLock const LOW_device   inDev
 

Obtain the lock.

Parameters:
inDev  Reference to the device to obtain the lock for.

Definition at line 36 of file LOW_device.cpp.

LOW_device::linkLock::~linkLock  
 

Release the lock.

Definition at line 41 of file LOW_device.cpp.


The documentation for this class was generated from the following files:
Generated on Sun Jan 12 21:07:55 2003 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001