RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.TThreadFunc Type

TThreadFunc defines a new thread of execution.

Pascal
TThreadFunc = function (Parameter: Pointer): Integer;
C++
(Parameter: Pointer): Integer ( TThreadFunc)();

System

Use BeginThread or a TThread object to spawn separate threads of execution. BeginThread spawns a new thread of execution via the TThreadFunc defined function.  

Parameter is a pointer to any data you want to pass to the new thread. 

When the thread completes, it returns a status code. 

 

BeginThread 

TThread

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!