TThread
Abstract base class for a single thread of execution
Inheritance
Level | Ancestor | Description |
---|---|---|
1 | TObject | Ultimate ancestor in a class hierarchy |
2 | TWaitableObject | Ahstract base class for an object that can be waited for using WaitFor |
3 | TThread |
Source
Thread.pas (28)
Description
Serves as a base class for functionality that should be executed in a separate thread. A thread can be
started by calling Resume
. When an exception occurs during the exection of the thread
it is logged and saved in Exception
to be processed by the caller.
Fields
Scope | Visibility | Type | Name | Description |
---|---|---|---|---|
Instance | protected | THandle | Handle | |
Instance | protected | TBoolean | FTerminated | |
Instance | protected | TPositiveInteger32 | FThreadID | |
Instance | protected | TBoolean | FFreeOnTerminate | |
Instance | protected | TBoolean | Finished | |
Instance | public | EException | Exception |
Methods
Scope | Visibility | Result | Name | Description |
---|---|---|---|---|
Instance | protected | TPositiveInteger32 | ThreadProcedure_Implementation() | |
Instance | protected | Execute() | ||
Global | protected | TPositiveInteger32 | ThreadProcedure(Thread: TThread) | |
Instance | public | Create() | ||
Instance | public | Destroy() | ||
Instance | public | BeforeDestruction() | ||
Instance | public | Resume() | ||
Instance | public | Kill() | ||
Instance | public | Terminate() | ||
Instance | public | Sleep(Duration_Milliseconds: TPositiveInteger32) | ||
Instance | public | THandle | GetWaitHandle() |