[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Start a new thread.
Source position: line 0
function BeginThread( |
sa: Pointer; |
stacksize: SizeUInt; |
ThreadFunction: TThreadFunc; |
p: pointer; |
creationFlags: DWord; |
var ThreadId: TThreadID |
):TThreadID; |
ThreadFunction: TThreadFunc |
):TThreadID; |
ThreadFunction: TThreadFunc; |
p: pointer |
):TThreadID; |
ThreadFunction: TThreadFunc; |
p: pointer; |
var ThreadId: TThreadID |
):TThreadID; |
ThreadFunction: TThreadFunc; |
p: pointer; |
var ThreadId: TThreadID; |
const stacksize: SizeUInt |
):TThreadID; |
BeginThread starts a new thread and executes ThreadFunction in the new thread. If P is specified, then it is passed to ThreadFunction. If ThreadId is specified, it is filled with the thread ID of the newly started thread. If StackSize is specified, it is set as the stack size for the new thread. If none is specified, a default stack size of 32Kb is used.
The function returns the thread ID on succes, or 0 if an error occurred.
On error, a nonzero value is returned.
|
End the current thread. |
lazarus-ccr.sourceforge.net |