Sign in Join
FPDoc Onlineexperiment

KillThread function

In unit System

Kill a running thread.

Declaration

pascal
function KillThread(threadHandle: TThreadID): DWord

Description

KillThread causes a running thread to be aborted. The thread is identified by it's handle or ID threadHandle.

The function returns zero if successful. A nonzero return value indicates failure.

Errors

If a failure occurred, a nonzero result is returned. The meaning is system dependent.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.