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
|
constructor, locks lock with id
Definition at line 13 of file LockScope.h. |
|
destructor, releases lock received in constructor
Definition at line 15 of file LockScope.h. |
Member Data Documentation
The documentation for this class was generated from the following file:
|