Luna::MutexGuard::lock
void lock(IMutex *mtx)
Locks the specified mutex. If there is already one locked mutex, the former mutex will be unlocked firstly.
Parameters
-
in mtx
The mutex to lock.
void lock(IMutex *mtx)
Locks the specified mutex. If there is already one locked mutex, the former mutex will be unlocked firstly.
in mtx
The mutex to lock.