SRWLock Class
Represents a slim reader/writer lock.
class SRWLock;
Remarks
A slim reader/writer lock is used to synchronize access across threads to an object or resource. For more information, see Synchronization Functions in the MSDN Library.
Members
Public Typedefs
SyncLockExclusive |
Synonym for an SRWLock object that is acquired in exclusive mode. |
SyncLockShared |
Synonym for an SRWLock object that is acquired in shared mode. |
Public Constructors
Name |
Description |
---|---|
Initializes a new instance of the SRWLock class. |
|
Deinitializes an instance of the SRWLock class. |
Public Methods
Name |
Description |
---|---|
Acquires an SRWLock object in exclusive mode. |
|
Acquires an SRWLock object in shared mode. |
|
Attempts to acquire a SRWLock object in exclusive mode for the current or specified SRWLock object. |
|
Attempts to acquire a SRWLock object in shared mode for the current or specified SRWLock object. |
Protected Data Member
Name |
Description |
---|---|
Contains the underlying lock variable for the current SRWLock object. |
Inheritance Hierarchy
SRWLock
Requirements
Header: corewrappers.h
Namespace: Microsoft::WRL::Wrappers