If you require a finer level of control you can manually lock and unlock the mutex at specific points, but for many simple uses this is not required.
| 91 | // and unlock the mutex at specific points, but for many simple uses |
| 92 | // this is not required. |
| 93 | void UnlockMutex() |
| 94 | { |
| 95 | m_Mutex->Unlock() ; |
| 96 | } |
| 97 | void LockMutex() |
| 98 | { |
| 99 | m_Mutex->Lock() ; |