[Overview][Types][Classes][Index] |
Number of busy waiting iterations used in the monitor.
Source position: lazcollections.pas line 53
public property TLazMonitor.SpinCount : Integer |
SpinCount is an Integer property which indicates the number of busy waiting iterations used in the monitor. The default value for the property is set in the Create constructor to the value in the DefaultSpinCount class property.
Set the value in SpinCount to increase or decrease the number of spinlock iterations performed in the Acquire method. The value should be kept as small as possible to avoid the overhead of process scheduler/context switching conflicts for executing threads.
|
Constructor for the class instance. |
|
|
Default number of busy waiting iterations used in instances of the class. |
|
|
Limits thread access to the calling thread. |
Version 4.0 | Generated 2025-05-03 | Home |