#include <FUCriticalSection.h>
Public Member Functions | |
FUCriticalSection () | |
Constructor. | |
~FUCriticalSection () | |
Destructor. | |
void | Enter () |
Enters the critical section, blocking if another thread is already in. | |
void | Leave () |
Leaves the critical section, allowing other threads to enter. |
Currently only supported for WIN32.
|
Enters the critical section, blocking if another thread is already in. Note: a thread may call Enter multiple times and it will still enter to prevent it from deadlocking itself. It must then call Leave the same number of times. |