isle/LEGO1/omni/include/mxautolock.h
Christian Semmler 51adf75b9b
(Refactor) Use more forward declarations (#881)
* Use more forward declarations

* Use more forward declarations

* Add more forward declarations

* Fix
2024-05-03 18:19:12 +02:00

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