Name

TThreadFunc Type

Syntax

type
  TThreadFunc = function(Parameter: Pointer): Integer;

Description

The BeginThread function takes a thread function as one of its arguments. The function’s signature must match the TThreadFunc type. BeginThread passes its Param argument to the thread function. The thread function’s return value becomes the thread’s exit code.

Example

See BeginThread for an example.

See Also

BeginThread Function, EndThread Procedure, IsMultiThread Variable, ThreadVar Keyword

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.