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

Copy
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 Header Library

wRTOS 1.1 SDK

windows.h

wRTOS_rtss.lib

Example

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

See Also: