nux-0.9.48

nux::NScopeLock Class Reference

Scope Lock class. More...

#include <NuxCore/ThreadGNU.h>

Public Member Functions

 NScopeLock (NCriticalSection *CriticalSectionObject)
 The constructor locks the critical section object.
 ~NScopeLock (void)

Detailed Description

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.


Constructor & Destructor Documentation

nux::NScopeLock::NScopeLock ( NCriticalSection CriticalSectionObject) [inline]

The constructor locks the critical section object.

The constructor locks the critical section object.

Parameters:
LockObjectCritical 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().


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