OpenBarnyard
 
Loading...
Searching...
No Matches
T2MutexLock.h
Go to the documentation of this file.
1#pragma once
2#include "T2Mutex.h"
3
4#define T2MUTEX_LOCK_SCOPE( mutex ) TANONYMOUSVAR( Toshi::T2MutexLock )( mutex )
5
7
9{
10public:
12 : m_Mutex( mutex ) { m_Mutex.Lock(); }
13 ~T2MutexLock() { m_Mutex.Unlock(); }
14
15private:
16 T2Mutex& m_Mutex;
17};
18
#define TOSHI_NAMESPACE_START
Definition Defines.h:47
#define TOSHI_NAMESPACE_END
Definition Defines.h:50
T2MutexLock(T2Mutex &mutex)
Definition T2MutexLock.h:11