nux-0.9.48

nux::NCriticalSection Class Reference

#include <NuxCore/ThreadGNU.h>

Public Member Functions

 NCriticalSection ()
 ~NCriticalSection ()
void Lock () const
 Enter critical section.
void Unlock () const
 Leave critical section.

Constructor & Destructor Documentation

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

Initialize critical section.

nux::NCriticalSection::~NCriticalSection ( ) [inline]

Destroy critical section.


Member Function Documentation

void nux::NCriticalSection::Lock ( ) const [inline]

Enter critical section.

Enter critical section. This function is made const so it can be used without restriction. For that matter, m_lock is made mutable.

Referenced by nux::NScopeLock::NScopeLock().

void nux::NCriticalSection::Unlock ( ) const [inline]

Leave critical section.

Leave critical section. This function is made const so it can be used without restriction. For that matter, m_lock is made mutable.

Referenced by nux::NScopeLock::~NScopeLock().


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