TwclThread Class

The class allows to use WCL components in threads, console and service applications.

Namespace: wclThread
TObject
  wclThread.TwclThread
type
 TwclThread = class
 end;

The TwclThread type exposes the following members.

Show:
 NameDescription
Create

Creates new Thread object.

Destroy

Terminates (if running) and frees the Thread object.

Top
Show:
 NameDescription
Running

Gets the thread state.

Top
Show:
 NameDescription
MessageReceived(TwclMessage)

The method called when new message received.

OnInitialize

The method called by the thread when it just started. An application must override this method to execute initialization code.

OnSignal(Byte)

This procedure is called when a signal received from the other thread.

OnSynchronize(Pointer)

This procedure called by the Syncrhonize method.

OnTerminate

The procedure is called when the thread is about termination. An application must execute all finalization code here.

Run

Starts the Thread execution.

Signal(Byte)

Posts signal to the Thread.

Synchronize(Pointer)

Executes a method call within the main thread.

Terminate

Terminates the thread.

Top