System.SyncObjs.TLightweightEvent.SpinCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property SpinCount: Integer read GetSpinCount;

C++

__property int SpinCount = {read=GetSpinCount, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.SyncObjs.pas
System.SyncObjs.hpp
System.SyncObjs TLightweightEvent

Description

Specifies the number of spin loops in the WaitFor function.

The WaitFor function spends a number of CPU cycles in spin loops to avoid immediate blocking of the calling thread.

You can specify the number of spin cycles in the WaitFor function if the processor is multicore.

See Also