timed_mutex Class
Represents a timed mutex type. Objects of this type are used to enforce mutual exclusion through time-limited blocking within a program.
class timed_mutex;
Members
Public Constructors
Name |
Description |
---|---|
Constructs a timed_mutex object that's not locked. |
|
Releases any resources that are used by the timed_mutex object. |
Public Methods
Name |
Description |
---|---|
Blocks the calling thread until the thread obtains ownership of the mutex. |
|
Attempts to obtain ownership of the mutex without blocking. |
|
Attempts to obtain ownership of the mutex for a specified time interval. |
|
Attempts to obtain ownership of the mutex until a specified time. |
|
Releases ownership of the mutex. |
Requirements
Header: mutex
Namespace: std