

Public Member Functions | |
| CCriticalSection () | |
| Creates a critical section object. | |
| CCriticalSection (const DWORD spinCount) | |
| Creates a critical section object and allows you to specify the spin count. | |
| ~CCriticalSection () | |
| void | SetSpinCount (const DWORD spinCount) |
| virtual bool | TryEnter () |
| Try to enter the critical section and lock other threads outside, returns true if successful and false if some other thread already has the critical section locked1. | |
| virtual void | Enter () |
| Enter the critical section and lock other threads outside. | |
| virtual void | Leave () |
| Leave the critical section and allow another thread to enter. | |
| CCriticalSection | ( | ) |
Creates a critical section object.
| CCriticalSection | ( | const DWORD | spinCount | ) | [explicit] |
Creates a critical section object and allows you to specify the spin count.
| ~CCriticalSection | ( | ) |
| void SetSpinCount | ( | const DWORD | spinCount | ) |
| bool TryEnter | ( | ) | [virtual] |
Try to enter the critical section and lock other threads outside, returns true if successful and false if some other thread already has the critical section locked1.
Implements ICriticalSection.
| void Enter | ( | ) | [virtual] |
| void Leave | ( | ) | [virtual] |
1.5.3