NAME

RtlSleepConditionVariableSRW  (NTDLL.@)

SYNOPSIS

 NTSTATUS RtlSleepConditionVariableSRW
 (
  RTL_CONDITION_VARIABLE* variable,
  RTL_SRWLOCK*            lock,
  const LARGE_INTEGER*    timeout,
  ULONG                   flags
 )

DESCRIPTION

Atomically releases the SRWLock and suspends the thread, waiting for a Wake(All)ConditionVariable event. Afterwards it enters the SRWLock again with the same access rights and returns.

PARAMS

variable [In/Out] condition variable.
lock [In/Out] SRWLock to leave temporarily.
timeout [In] timeout.
flags [In] type of the current lock (exclusive / shared).

RETURNS

see NtWaitForKeyedEvent for all possible return values.

NOTES

the behaviour is undefined if the thread doesn't own the lock.

IMPLEMENTATION

Declared in "winternl.h". https://source.winehq.org/source/include/winternl.h

Implemented in "dlls/ntdll/sync.c". https://source.winehq.org/source/dlls/ntdll/sync.c

Debug channel "sync".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Mar 2024.