CPN
Computational Process Networks
Public Member Functions | Public Attributes | List of all members
AutoUnlock< lockable > Struct Template Reference

#include <AutoUnlock.h>

+ Collaboration diagram for AutoUnlock< lockable >:

Public Member Functions

 AutoUnlock (lockable &l)
 
 ~AutoUnlock ()
 

Public Attributes

lockable & lock
 

Detailed Description

template<typename lockable>
struct AutoUnlock< lockable >

Definition at line 29 of file AutoUnlock.h.

Constructor & Destructor Documentation

template<typename lockable>
AutoUnlock< lockable >::AutoUnlock ( lockable &  l)
inline

Definition at line 30 of file AutoUnlock.h.

References AutoUnlock< lockable >::lock.

30 : lock(l) { lock.Unlock(); }
lockable & lock
Definition: AutoUnlock.h:32
template<typename lockable>
AutoUnlock< lockable >::~AutoUnlock ( )
inline

Definition at line 31 of file AutoUnlock.h.

References AutoUnlock< lockable >::lock.

31 { lock.Lock(); }
lockable & lock
Definition: AutoUnlock.h:32

Member Data Documentation

template<typename lockable>
lockable& AutoUnlock< lockable >::lock

The documentation for this struct was generated from the following file: