Back to index

nux  3.0.0
Public Member Functions | Private Member Functions | Private Attributes
nux::NScopeLock Class Reference

Scope Lock class. More...

#include <ThreadGNU.h>

Collaboration diagram for nux::NScopeLock:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Member Functions

 NScopeLock (void)
 NScopeLock (const NScopeLock &ScopeLockObject)
NScopeLockoperator= (const NScopeLock &ScopeLockObject)

Private Attributes

NCriticalSectionm_CriticalSectionObject

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.

Definition at line 126 of file ThreadGNU.h.


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.

Definition at line 134 of file ThreadGNU.h.

Here is the call graph for this function:

nux::NScopeLock::~NScopeLock ( void  ) [inline]

The destructor unlocks the critical section object.

Definition at line 145 of file ThreadGNU.h.

Here is the call graph for this function:

nux::NScopeLock::NScopeLock ( void  ) [private]

Prohibit default constructor.

nux::NScopeLock::NScopeLock ( const NScopeLock ScopeLockObject) [private]

Prohibit copy constructor.


Member Function Documentation

NScopeLock& nux::NScopeLock::operator= ( const NScopeLock ScopeLockObject) [inline, private]

Prohibit assignment operator.

Definition at line 168 of file ThreadGNU.h.

    {
      return *this;
    }

Member Data Documentation

Critical section Object.

Definition at line 177 of file ThreadGNU.h.


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