Isle
Loading...
Searching...
No Matches
mxautolock.h
Go to the documentation of this file.
1#ifndef MXAUTOLOCK_H
2#define MXAUTOLOCK_H
3
5#define AUTOLOCK(CS) MxAutoLock lock(&CS)
6
8
13public:
16 MxAutoLock(MxCriticalSection* p_criticalSection);
17
20
21private:
22 MxCriticalSection* m_criticalSection;
23};
24
25#endif // MXAUTOLOCK_H
[AI] Provides automatic RAII-style locking and unlocking for a critical section.
Definition: mxautolock.h:12
~MxAutoLock()
[AI] Destructor releases (leaves) the critical section if it was acquired. [AI]
Definition: mxautolock.cpp:18
[AI] Provides a critical section object for mutual exclusion with optional use of OS mutex.