ReleaseSRWLockExclusive

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

Syntax

Copy
VOID ReleaseSRWLockExclusive(   
    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
AcquireSRWLockExclusive(&lock);
// Code that is executed by only one thread at a time when using the lock this way. 
ReleaseSRWLockExclusive(&lock);

See Also: