ReleaseSRWLockShared function (synchapi.h)

Releases a slim reader/writer (SRW) lock that was acquired in shared mode.

Syntax

void ReleaseSRWLockShared(
  [in, out] PSRWLOCK SRWLock
);

Parameters

[in, out] SRWLock

A pointer to the SRW lock.

Return value

None

Remarks

The SRW lock must be released by the same thread that acquired it. You can use Application Verifier to help verify that your program uses SRW locks correctly (enable Locks checker from Basic group).

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header synchapi.h (include Windows.h on Windows 7, Windows Server 2008 Windows Server 2008 R2)
Library Kernel32.lib
DLL Kernel32.dll

See also

AcquireSRWLockShared

Slim Reader/Writer (SRW) Locks

Synchronization Functions

Vertdll APIs available in VBS enclaves