Nebula
Loading...
Searching...
No Matches
Win32::Win32CriticalSection Class Reference

#include <win32criticalsection.h>

Detailed Description

Win32-implementation of critical section.

Critical section objects are used to protect a portion of code from parallel execution. Define a static critical section object and use its Enter() and Leave() methods to protect critical sections of your code.

Public Member Functions

 Win32CriticalSection ()
 constructor
 
 ~Win32CriticalSection ()
 destructor
 
void Enter () const
 enter the critical section
 
void Leave () const
 leave the critical section
 

Private Attributes

CRITICAL_SECTION criticalSection
 

Constructor & Destructor Documentation

◆ Win32CriticalSection()

Win32::Win32CriticalSection::Win32CriticalSection ( )
inline

constructor

◆ ~Win32CriticalSection()

Win32::Win32CriticalSection::~Win32CriticalSection ( )
inline

destructor

Member Function Documentation

◆ Enter()

void Win32::Win32CriticalSection::Enter ( ) const
inline

enter the critical section

◆ Leave()

void Win32::Win32CriticalSection::Leave ( ) const
inline

leave the critical section

Member Data Documentation

◆ criticalSection

CRITICAL_SECTION Win32::Win32CriticalSection::criticalSection
mutableprivate

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