mutex Class (STL)
Represents a mutex type. Objects of this type can be used to enforce mutual exclusion within a program.
Blocks the calling thread until the thread obtains ownership of the mutex.
Returns the implementation-specific type that represents the mutex handle.
Attempts to obtain ownership of the mutex without blocking.
Releases ownership of the mutex.