mirror of
https://github.com/isledecomp/isle.git
synced 2024-12-20 21:12:43 -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
|