mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-26 20:01:55 +01:00
13 lines
258 B
C++
13 lines
258 B
C++
|
#ifndef __LOCKMUTEX_HPP
|
||
|
#define __LOCKMUTEX_HPP
|
||
|
|
||
|
class LockMutex
|
||
|
{
|
||
|
mutex_t &m_mutex;
|
||
|
public:
|
||
|
LockMutex(mutex_t &m) : m_mutex(m) { LWP_MutexLock(m_mutex); }
|
||
|
~LockMutex(void) { LWP_MutexUnlock(m_mutex); }
|
||
|
};
|
||
|
|
||
|
#endif // !defined(__LOCKMUTEX_HPP)
|