mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-12-23 14:22:42 -05:00
76435d803f
* Style refactor omni/system components * Fix * Fix
17 lines
290 B
C++
17 lines
290 B
C++
#ifndef MXAUTOLOCK_H
|
|
#define MXAUTOLOCK_H
|
|
|
|
class MxCriticalSection;
|
|
|
|
#define AUTOLOCK(CS) MxAutoLock lock(&CS)
|
|
|
|
class MxAutoLock {
|
|
public:
|
|
MxAutoLock(MxCriticalSection* p_criticalSection);
|
|
~MxAutoLock();
|
|
|
|
private:
|
|
MxCriticalSection* m_criticalSection; // 0x00
|
|
};
|
|
|
|
#endif // MXAUTOLOCK_H
|