AnimatLab  2
Test
StdUtils::CStdCriticalSectionInternal::InternalLocker Class Reference

Internal locker. More...

#include <StdCriticalSectionInternal.h>

+ Collaboration diagram for StdUtils::CStdCriticalSectionInternal::InternalLocker:

Public Member Functions

 InternalLocker (std::atomic< int > &iBusy)
 Constructor. More...
 
 ~InternalLocker ()
 Finaliser. More...
 

Protected Member Functions

 InternalLocker ()
 Default constructor. More...
 
 InternalLocker (const InternalLocker &src)
 Copy constructor. More...
 
const InternalLockeroperator= (const InternalLocker &src)
 Assignment operator. More...
 

Protected Attributes

std::atomic< int > & m_iBusy
 Tells if this is busy.
 

Detailed Description

Internal locker.

internal locking class.

Author
dcofer
Date
5/3/2011

Definition at line 78 of file StdCriticalSectionInternal.h.

Constructor & Destructor Documentation

StdUtils::CStdCriticalSectionInternal::InternalLocker::InternalLocker ( )
protected

Default constructor.

Author
dcofer
Date
5/3/2011
StdUtils::CStdCriticalSectionInternal::InternalLocker::InternalLocker ( const InternalLocker src)
protected

Copy constructor.

Author
dcofer
Date
5/3/2011
Parameters
srcSource for the.
StdUtils::CStdCriticalSectionInternal::InternalLocker::InternalLocker ( std::atomic< int > &  iBusy)
explicit

Constructor.

Author
dcofer
Date
5/3/2011
Parameters
plBusyThe pl busy.

For internal use by CStdCriticalSection This locks access to the internal variables of an instance of CStdCriticalSection from other threads

Author
dcofer
Date
5/3/2011
Parameters
plBusyThe busy flag.

Definition at line 63 of file StdCriticalSectionInternal.cpp.

References m_iBusy.

StdUtils::CStdCriticalSectionInternal::InternalLocker::~InternalLocker ( )

Finaliser.

Destructor.

Author
dcofer
Date
5/3/2011

For internal use by CStdCriticalSection This unlocks the lock the constructor of this class gained.

Author
dcofer
Date
5/3/2011

Definition at line 83 of file StdCriticalSectionInternal.cpp.

References StdUtils::CStdCriticalSectionInternal::m_iBusy.

Member Function Documentation

const InternalLocker& StdUtils::CStdCriticalSectionInternal::InternalLocker::operator= ( const InternalLocker src)
protected

Assignment operator.

Author
dcofer
Date
5/3/2011
Parameters
srcSource for the.
Returns
A shallow copy of this object.

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