![]() |
Public API Reference |
#include <scopedmutexlock.h>
If A MutexLock class is created it locks the mutex, when it is destroyed it unlocks the Mutex again. So locking a mutex can happen by creating a MutexLock object on the stack. The compiler will then take care that the Unlock calls will be done in each case. Example: void Myfunc() { csScopedMutexLock lock(mymutex); do something special
return; }
Definition at line 38 of file scopedmutexlock.h.