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 Member Functions

 linkLock (const LOW_device &inDev)
 Obtain the lock.

 ~linkLock ()
 Release the lock.


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 116 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 Tue Feb 3 11:30:54 2004 for OneWireLibrary++ by doxygen 1.3.2