ReleaseSRWLockShared

ReleaseSRWLockShared releases an SRW lock previously acquired in shared mode. If other threads are waiting, the next waiter is awakened according to the queuing policy.

Syntax

VOID ReleaseSRWLockShared(   
    PSRWLOCK pSrwLock
);

Parameters

pSrwLock

A pointer to the SRW lock to release.

Return Value

This function does not return a value.

Remarks

Requirements

Minimum Supported Version RTX64 4.5.5
Header windows.h
Library Rtx_Rtss.lib

Example

Copy
AcquireSRWLockShared(&lock);
// Read-only operations
ReleaseSRWLockShared(&lock);

See Also: