isle/LEGO1/omni/include/mxautolock.h

18 lines
288 B
C
Raw Normal View History

#ifndef MXAUTOLOCK_H
#define MXAUTOLOCK_H
#include "mxcriticalsection.h"
#define AUTOLOCK(CS) MxAutoLock lock(&CS)
class MxAutoLock {
public:
MxAutoLock(MxCriticalSection* p_criticalSection);
~MxAutoLock();
private:
MxCriticalSection* m_criticalSection;
};
#endif // MXAUTOLOCK_H