Auto-lock class for managing critical sections. More...
#include <SCriticalSection.h>
Public Member Functions | |
| SAutoLock (SCriticalSection &cs) | |
| Constructor. | |
| ~SAutoLock () | |
| Destructor. | |
Protected Attributes | |
| SCriticalSection & | m_cs |
Auto-lock class for managing critical sections.
This class automatically enters the critical section upon construction and leaves it upon destruction.
Definition at line 66 of file SCriticalSection.h.
|
inline |
Constructor.
| cs | Reference to the SCriticalSection object to manage. |
Enters the critical section.
Definition at line 74 of file SCriticalSection.h.
|
inline |
|
protected |
Reference to the managed SCriticalSection object.
Definition at line 89 of file SCriticalSection.h.