CriticalSection Class
Represents a critical section object.
class CriticalSection;
Members
Constructor
Name |
Description |
---|---|
Initializes a synchronization object that is similar to a mutex object, but can be used by only the threads of a single process. |
|
Deinitializes and destroys the current CriticalSection object. |
Public Methods
Name |
Description |
---|---|
Attempts to enter a critical section without blocking. If the call is successful, the calling thread takes ownership of the critical section. |
|
Waits for ownership of the specified critical section object. The function returns when the calling thread is granted ownership. |
|
Indicates whether the current critical section is valid. |
Protected Data Members
Name |
Description |
---|---|
Declares a critical section data member. |
Inheritance Hierarchy
CriticalSection
Requirements
Header: corewrappers.h
Namespace: Microsoft::WRL::Wrappers