TwclThread Class

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

Namespace: wclMessaging
TObject
  wclMessaging.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
OnInitialize

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

OnSignal(ULONG_PTR)

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

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(ULONG_PTR)

Posts signal to the Thread.

Terminate

Terminates the thread.

Top