Class TActiveObject (unit Threads)

Inherits from

TSeparateThread

An active object has a virtual method named Execute that is called on a separate thread. Descendents of TActiveObject can override this method to implement the thread code. The default behavior of execute is to call OnThread once. The protected method Main will keep calling execute until the thread is terminated.

Constructors


constructor Create(aStackSize : Word; aMinSliceTicks: LongInt);



Functions

procedure Execute;


procedure Main;


Properties

Events

event OnThread : TThreadEvent


Variables

FOnThread : TThreadEvent;



Constructors


constructor Create(aStackSize : Word; aMinSliceTicks: LongInt);


Functions


procedure Execute;


procedure Main;


Properties


Events


event OnThread : TThreadEvent


Variables


FOnThread : TThreadEvent;