-
Notifications
You must be signed in to change notification settings - Fork 7
named_mutex lock
Alairion edited this page May 8, 2021
·
4 revisions
nes::named_mutex::lock
(1) void lock();
- Locks the mutex. If another thread has already locked the mutex, a call to lock will block execution until the lock is acquired.
None.
- None.
- The calling thread must not own the mutex.
- Throws a
std::runtime_error
if the lock operation fails.
- On Windows, calls
WaitForSingleObject
On Posix systems, callspthread_mutex_lock