9#if __has_include("defs.h")
12#include "safe_winsock.h"
29 virtual void enter ();
31 virtual void leave ();
34 CRITICAL_SECTION section;
87 InitializeCriticalSection (§ion);
93 DeleteCriticalSection (§ion);
99 EnterCriticalSection (§ion);
105 return (TryEnterCriticalSection (§ion) != 0);
111 LeaveCriticalSection (§ion);
121 : section (t.section)
Lightweight inter-thread synchronization.
Definition critsect.h:25
virtual bool try_enter()
Return true if critical section was entered.
Definition critsect.h:103
~criticalsection()
Deletes the critical section object.
Definition critsect.h:91
criticalsection()
Initializes critical section object.
Definition critsect.h:85
virtual void enter()
Enter critical section.
Definition critsect.h:97
virtual void leave()
Leave critical section.
Definition critsect.h:109
Automatic wrapper for critical sections.
Definition critsect.h:69
lock(criticalsection &cs)
Acquire critical section.
Definition critsect.h:114
~lock()
Leave critical section.
Definition critsect.h:126