Sign in Join
FPDoc Onlineexperiment

TThreadManager record

In unit System

Thread manager record.

Declaration

pascal
TThreadManager = record

Description

TThreadManager is a record that contains all callbacks needed for the thread handling routines of the Free Pascal Run-Time Library. The thread manager can be set by the SetThreadManager procedure, and the current thread manager can be retrieved with the GetThreadManager procedure.

The Windows RTL will set the thread manager automatically to a system thread manager, based on the Windows threading routines. Unix operating systems provide a unit cthreads which implements threads based on the C library POSIX thread routines. It is not included by default, because it would make the system unit dependent on the C library.

For more information about thread programming, see the programmer's guide.

See also

Fields

InitManagerpublicInitialize the thread manager.
DoneManagerpublicClean up the thread manager.
BeginThreadpublicStart a new thread.
EndThreadpublicEnd the current thread.
SuspendThreadpublicSuspend a running thread.
ResumeThreadpublicResume a suspended thread.
KillThreadpublicKill a running thread.
CloseThreadpublicImplements CloseThread.
ThreadSwitchpublicCause a threadswitch.
WaitForThreadTerminatepublicWait for a thread to stop.
ThreadSetPrioritypublicSet thread priority.
ThreadGetPrioritypublicGet thread priority.
GetCurrentThreadIdpublicGet current thread ID.
SetThreadDebugNameApublicCalled to set the debug name of the thread using an AnsiString.
SetThreadDebugNameUpublicCalled to set the debug name of the thread using a UnicodeString.
InitCriticalSectionpublicInitialize a critical section.
DoneCriticalSectionpublicFree a critical section.
EnterCriticalSectionpublicEnter a critical section.
TryEnterCriticalSectionpublicImplements TryEnterCriticalsection.
LeaveCriticalSectionpublicleave a critical section.
InitThreadVarpublicInitialize a thread variable.
RelocateThreadVarpublicRelocate a thread variable.
AllocateThreadVarspublicAllocate thread variables.
ReleaseThreadVarspublicRelease thread variables.
BasicEventCreatepublicCreate a basic event.
BasicEventDestroypublicDestroy a basic event.
BasicEventResetEventpublicReset a basic event.
BasicEventSetEventpublicSet a basic event.
BasiceventWaitFOrpublicWait for a basic event.
RTLEventCreatepublicCreate an RTL event.
RTLEventDestroypublicFree an RTL event.
RTLEventSetEventpublicSet an RTL event.
RTLEventResetEventpublicReset an RTL event.
RTLEventWaitForpublicWait for an RTL event.
RTLEventWaitForTimeoutpublicWait for RTL event, with timeout.

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