Copyright © 2006 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
Copyright © 2006 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
public:
MutexLock(Mutex &m, bool l=true): mutex(m) { if(l) mutex.lock(); }
~MutexLock() { mutex.unlock(); }
int lock() { return mutex.lock(); }
private:
public:
MutexLock(Mutex &m, bool l=true): mutex(m) { if(l) mutex.lock(); }
~MutexLock() { mutex.unlock(); }
int lock() { return mutex.lock(); }
private: