System.SyncObjs.TLightweightEvent.Create

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

constructor Create; overload;
constructor Create(InitialState: Boolean); overload;
constructor Create(InitialState: Boolean; SpinCount: Integer); overload;

C++

__fastcall TLightweightEvent()/* overload */;
__fastcall TLightweightEvent(bool InitialState)/* overload */;
__fastcall TLightweightEvent(bool InitialState, int SpinCount)/* overload */;

Propriétés

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

Description

Crée et initialise l'événement.

Vous pouvez spécifier l'état initial de l'événement. Par défaut, l'événement est initialement en état non signalé. Vous pouvez également spécifier le nombre de boucles d'attente si le processeur est un processeur multicœur.

Le paramètre SpinCount ne doit pas dépasser 4096.

Voir aussi