System.SyncObjs.TLightweightEvent.SpinCount

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

property SpinCount: Integer read GetSpinCount;

C++

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

Propriétés

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

Description

Spécifie le nombre de boucles d'attente de la fonction WaitFor. La fonction WaitFor dépense un nombre de cycles CPU dans les boucles d'attente pour éviter le blocage immédiat du thread appelant.

Vous pouvez spécifier le nombre de boucles d'attente de la fonction WaitFor si le processeur est multicoeur.

Voir aussi