Reference

InitializeCriticalSectionEx(3w)

NAME

InitializeCriticalSectionEx (KERNEL32.@)

SYNOPSIS

BOOL InitializeCriticalSectionEx
(
CRITICAL_SECTION* crit,
DWORD spincount,
DWORD flags
)

DESCRIPTION

Initialise a critical section with a spin count and flags.

PARAMS

crit [Out] Critical section to initialise.

spincount [In] Number of times to spin upon contention.

flags [In] CRITICAL_SECTION_ flags from winbase.h.

RETURNS

Success: TRUE.

Failure: Nothing. If the function fails an exception is raised.

NOTES

spincount is ignored on uni-processor systems.

IMPLEMENTATION

Declared in "winbase.h".

Implemented in "dlls/kernel32/sync.c".

Debug channel "sync".