Class TFitServiceWithThread
Unit
fit_service_with_thread
Declaration
type TFitServiceWithThread = class(TFitService)
Description
The server component performing long-term operation in separate thread.
Hierarchy
Overview
Fields
Methods
Description
Fields
|
FCurMin: double; |
Temporarily saved value of current minimum.
|
|
FMainCalcThread: TMainCalcThread; |
Pointer to the thread performing long-term method of the component. It is used for synchronization with main thread of the application. If this pointer is not Nil then displaying methods are called synchronously.
|
Methods
|
destructor Destroy; override; |
|
|
function CreateTaskObject: TFitTask; override; |
|
|
procedure AbortAsyncOper; override; |
Synchronous termination of long-term operation without calling termination method.
|
|
procedure ComputeBackgroundPointsDone; override; |
|
|
procedure ComputeCurveBoundsDone; override; |
|
|
procedure ComputeCurvePositionsDone; override; |
|
|
procedure Done; override; |
|
|
procedure ShowCurMin(Min: double); override; |
All methods must be called synchronously with main application thread, because they update UI. These methods must not call inherited ones, instead call synchronized counterparts of FMainCalcThread.
|
|
procedure ShowProfile; override; |
|
|
procedure StopAsyncOper; override; |
Asynchronous termination of long-term operation with calling termination method.
|
|
procedure ComputeBackgroundPointsDoneSync; |
|
|
procedure ComputeCurveBoundsDoneSync; |
|
|
procedure ComputeCurvePositionsDoneSync; |
|
|
procedure DestroyMainCalcThread; |
Waits for completion of the thread. Do not call from synchonized method, otherwise this will result in deadlock.
|
|
procedure DoneSync; |
|
|
procedure RecreateMainCalcThread(ATask: TThreadMethod; AAllDone: TThreadMethod); override; |
|
|
procedure ShowCurMinSync; |
These methods are called synchronously from the worker thread. They can't have parameters and call inherited methods to perform actual processing.
|
|
procedure ShowProfileSync; |
|
Generated by PasDoc 0.15.0.
|