Homepage Demos Overview Downloads Tutorials Reference
Credits
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Search

LockScope< num_doors > Class Template Reference

#include <LockScope.h>

List of all members.


Detailed Description

template<unsigned int num_doors>
class LockScope< num_doors >

Locks a MutexLock until the LockScope goes out of scope.

This can help prevent forgetting to do it if you function has multiple return points

Definition at line 10 of file LockScope.h.

Public Member Functions

 LockScope (MutexLock< num_doors > &lock, int id)
 constructor, locks lock with id

 ~LockScope ()
 destructor, releases lock received in constructor


Protected Attributes

MutexLock< num_doors > & l
 the lock


Constructor & Destructor Documentation

template<unsigned int num_doors>
LockScope< num_doors >::LockScope MutexLock< num_doors > &  lock,
int  id
[inline]
 

constructor, locks lock with id

Definition at line 13 of file LockScope.h.

References LockScope< num_doors >::l.

template<unsigned int num_doors>
LockScope< num_doors >::~LockScope  )  [inline]
 

destructor, releases lock received in constructor

Definition at line 15 of file LockScope.h.

References LockScope< num_doors >::l.


Member Data Documentation

template<unsigned int num_doors>
MutexLock<num_doors>& LockScope< num_doors >::l [protected]
 

the lock

Definition at line 17 of file LockScope.h.


The documentation for this class was generated from the following file:
Tekkotsu v1.4
Generated Sat Jul 19 00:09:02 2003 by Doxygen 1.3.2