InitializeSRWLock function (Windows)

Switch View :
ScriptFree
InitializeSRWLock function

Applies to: desktop apps | Metro style apps

Initialize a slim reader/writer (SRW) lock.

Syntax

VOID WINAPI InitializeSRWLock(
  __out  PSRWLOCK SRWLock
);

Parameters

SRWLock [out]

A pointer to the SRW lock.

Return value

This function does not return a value.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

WinBase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

Slim Reader/Writer (SRW) Locks
Synchronization Functions

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Community Content

我就是菜鸟一个
what will happen if i use InitializeSRWLock initting a SRWLock several times
as the title says