mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-29 19:05:34 -05:00
51adf75b9b
* Use more forward declarations * Use more forward declarations * Add more forward declarations * Fix
17 lines
282 B
C++
17 lines
282 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;
|
|
};
|
|
|
|
#endif // MXAUTOLOCK_H
|