|
gslmm::guard< Lock > Struct Template Reference
[Miscellaneous]
#include <gslmm-util.hh>
Collaboration diagram for gslmm::guard< Lock >:
[legend]List of all members.
Detailed Description
template<typename Lock>
struct gslmm::guard< Lock >
Class to ease the locking.
The argument to the constructor must be some kind of lock. When the object is created (constructed) the lock is aquired, and when the object goes out of scope (destructed), the lock is released.
- Parameters:
-
| Lock | The type of lock to lock. |
|
Public Member Functions |
| guard (Lock &lock) |
| ~guard () |
Public Attributes |
Lock & | _lock |
Constructor & Destructor Documentation
|
CTOR.
Acquires the lock - Parameters:
-
| lock | The lock to acquire. |
|
Member Data Documentation
The documentation for this struct was generated from the following file:
|