[Overview][Types][Classes][Index] Reference for unit 'LazCollections' (#lazutils)

EnterOrWait

Enters the protected section, or waits until it is available.

Declaration

Source position: lazcollections.pas line 36

function TWaitableSection.EnterOrWait(

  AnEventCache: PPRTLEvent = Nil

):Boolean;

Arguments

AnEventCache

  

Cached RTL event set and monitored in the method.

Function result

True if the protected section has not been entered.

See also

TWaitableSection.GetCachedOrNewEvent

  

Gets or creates the RTL event for the synchronization object.

InterlockedCompareExchange

RTLEventSetEvent

RTLEventWaitFor


Version 4.0 Generated 2025-05-03 Home