|
nux-0.9.46
|
Scope Lock class. More...
#include <NuxCore/ThreadGNU.h>
Public Member Functions | |
| NScopeLock (NCriticalSection *CriticalSectionObject) | |
| The constructor locks the critical section object. | |
| ~NScopeLock (void) | |
Scope Lock class.
Takes a critical section object as parameter of the constructor. The constructor locks the critical section. The destructor unlocks the critical section.
| nux::NScopeLock::NScopeLock | ( | NCriticalSection * | CriticalSectionObject | ) | [inline] |
The constructor locks the critical section object.
The constructor locks the critical section object.
| LockObject | Critical section object. |
References nux::NCriticalSection::Lock(), and nuxAssert.
| nux::NScopeLock::~NScopeLock | ( | void | ) | [inline] |
The destructor unlocks the critical section object.
References nuxAssert, and nux::NCriticalSection::Unlock().