mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-24 04:09:15 +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)
|