Mutex class
A mutex is a lockable object that's designed to signal when critical sections of code need exclusive access, preventing O ther threads with the same protection from executing concurrently and access the same memory locations.
mutexobjects provide exclusive ownership and do no support recursivity (i.e., a thread shall not lock a mutex it already owns) -See for a recursive_mutex alternative class that does.
It's guaranteed to be a standard-layout class.
Member types
| member Type |
Description |
| native_handle_type |
Type returned by native_handle (defined if library implementation supports it) |
Member functions
-
(constructor)
-
Construct Mutex (public member function)
-
Lock
-
Lock Mutex (public member function)
-
Try_lock
-
Lock Mutex if not locked (public member function)
-
Unlock
-
Unlock Mutex (public member function)
-
Native_handle
-
Get Native handle (public member function)
concurrency, mutex, lock. Draft