mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 02:31:15 +00:00
18 lines
303 B
C++
18 lines
303 B
C++
#ifndef MXAUTOLOCKER_H
|
|
#define MXAUTOLOCKER_H
|
|
|
|
#include "mxcriticalsection.h"
|
|
|
|
#define AUTOLOCK(CS) MxAutoLocker lock(&CS);
|
|
|
|
class MxAutoLocker {
|
|
public:
|
|
MxAutoLocker(MxCriticalSection* p_criticalSection);
|
|
~MxAutoLocker();
|
|
|
|
private:
|
|
MxCriticalSection* m_criticalSection;
|
|
};
|
|
|
|
#endif // MXAUTOLOCKER_H
|