Skip to content

TDaemonThread

Thread to run daemons in.

Declaration

Source position: daemonapp.pp line 339

type

  TDaemonThread = class(TThread)
  public
    constructor Create;
    procedure Execute;
    procedure CheckControlMessage;
    function StopDaemon : Boolean;
    function PauseDaemon : Boolean;
    function ContinueDaemon : Boolean;
    function ShutDownDaemon : Boolean;
    function InterrogateDaemon : Boolean;
    property Daemon: TCustomDaemon; {r}
  end;

Description

TDaemonThread is the thread in which the daemons in the application are run. Each daemon is run in it's own thread.

It should not be necessary to create these threads manually, the TDaemonController class will take care of this.

Properties

Member Visibility Description
Daemon read only public Daemon instance.
See all Properties

Methods

Member Visibility Description
CheckControlMessage public Check if a control message has arrived.
ContinueDaemon public Continue the daemon.
Create public Create a new thread.
Execute public Run the daemon.
InterrogateDaemon public Report the daemon status.
PauseDaemon public Pause the daemon.
ShutDownDaemon public Shut down daemon.
StopDaemon public Stops the daemon.
See all Methods

See also

Name Description
TDaemonController Internal daemon controller class.
TDaemon Daemon class for visual development.