AnimatLab  2
Test
StdUtils::CStdCriticalSection Class Referenceabstract

Standard critical section. More...

#include <StdCriticalSection.h>

+ Inheritance diagram for StdUtils::CStdCriticalSection:
+ Collaboration diagram for StdUtils::CStdCriticalSection:

Public Member Functions

 CStdCriticalSection ()
 Default constructor. More...
 
 ~CStdCriticalSection ()
 Destructor. More...
 
virtual bool Leave ()=0
 
virtual bool TryEnter ()=0
 

Detailed Description

Standard critical section.

This is a critical section class used to lock a section of code. This is primarily used when multithreading to prevent multiple threads from modifying the same resources.

Author
dcofer
Date
5/3/2011

Definition at line 50 of file StdCriticalSection.h.

Constructor & Destructor Documentation

StdUtils::CStdCriticalSection::CStdCriticalSection ( )

Default constructor.

Author
dcofer
Date
5/3/2011

Definition at line 46 of file StdCriticalSection.cpp.

StdUtils::CStdCriticalSection::~CStdCriticalSection ( )

Destructor.

This releases the critical section lock if one was gained with a TryEnter call

Author
dcofer
Date
5/3/2011

Definition at line 59 of file StdCriticalSection.cpp.


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