RtlTryEnterCriticalSection(3w)

RtlTryEnterCriticalSection3w

Usage

BOOL RtlTryEnterCriticalSection
(
RTL_CRITICAL_SECTION* crit
)

Overview

Tries to enter a critical section without waiting.

Params

crit [In/Out] Critical section to enter.

Returns

Success: TRUE. The critical section is held by the caller.

Failure: FALSE. The critical section is currently held by another thread.

See

RtlInitializeCriticalSectionEx(), RtlInitializeCriticalSection(), RtlInitializeCriticalSectionAndSpinCount(3w), RtlDeleteCriticalSection(), RtlEnterCriticalSection(3w), RtlLeaveCriticalSection(), RtlSetCriticalSectionSpinCount(3w)

Implementation

Declared in "winternl.h".

Implemented in "dlls/ntdll/critsection.c".

Debug channel "ntdll".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.