mutex Class (STL)
Represents a mutex type. Objects of this type can be used to enforce mutual exclusion within a program.
class mutex;
Members
Public Constructors
Name |
Description |
---|---|
Constructs a mutex object. |
|
Releases any resources that were used by the mutex object. |
Public Methods
Name |
Description |
---|---|
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. |
Requirements
Header: mutex
Namespace: std