|
AnimatLab
2
Test
|
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 |
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.
Definition at line 50 of file StdCriticalSection.h.
| StdUtils::CStdCriticalSection::CStdCriticalSection | ( | ) |
| StdUtils::CStdCriticalSection::~CStdCriticalSection | ( | ) |
Destructor.
This releases the critical section lock if one was gained with a TryEnter call
Definition at line 59 of file StdCriticalSection.cpp.