Sign in Join
FPDoc Onlineexperiment

CloseThread function

In unit System

Close a thread and free up resources used by the thread.

Declaration

pascal
function CloseThread(threadHandle: TThreadID): DWord

Description

CloseThread must be called on any thread started with BeginThread. It must be called after the thread has ended (either by exiting the thread function or after calling EndThread).

Errors

If no threadmanager is installed, an exception may be raised or runtime error 232 may occur if no exceptions are used.

See also

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