critical_section Class
A non-reentrant mutex which is explicitly aware of the Concurrency Runtime.
class critical_section;
Members
Public Typedefs
Name |
Description |
---|---|
native_handle_type |
A reference to a critical_section object. |
Public Classes
Name |
Description |
---|---|
An exception safe RAII wrapper for a critical_section object. |
Public Constructors
Name |
Description |
---|---|
Constructs a new critical section. |
|
Destroys a critical section. |
Public Methods
Name |
Description |
---|---|
Acquires this critical section. |
|
Returns a platform specific native handle, if one exists. |
|
Tries to acquire the lock without blocking. |
|
Tries to acquire the lock without blocking for a specific number of milliseconds. |
|
Unlocks the critical section. |
Remarks
For more information, see Synchronization Data Structures.
Inheritance Hierarchy
critical_section
Requirements
Header: concrt.h
Namespace: concurrency