System.Threading.TTask Methods
InheritedProtected
__MarkDestroying | protected | |
_AddRef | protected | Implements the IInterface_AddRef method. |
_Release | protected | Implements the IInterface_Release method. |
AddChild | protected | |
AddCompleteEvent | protected | |
AfterConstruction | public | Responds after the last constructor executes. |
BeforeDestruction | public | Checks that the reference count is zero before allowing the interfaced object to be destroyed. |
CallUserCode | protected | |
Cancel | protected | Cancels the task. |
CheckCanceled | protected | Checks the task status. If the task is canceled, it raise and EOperationCancelled exception. |
CheckDisposed | protected | This method is deprecated. |
CheckFaulted | protected | |
ClassInfo | public | Returns a pointer to the run-time type information (RTTI) table for the object type. |
ClassName | public | Returns a string indicating the type of the object instance (as opposed to the type of the variable passed as an argument). |
ClassNameIs | public | Determines whether an object is of a specific type. |
ClassParent | public | Returns the type of the immediate ancestor of a class. |
ClassType | public | Returns the class reference for the object's class. |
CleanupInstance | public | Performs finalization on long strings, variants, and interface variables within a class. |
Complete | protected | |
Create | public | Creates an instance of TTask managing the execution of a procedure that may execute in a parallel thread. |
CreateReplicaTask | protected | |
CurrentTask | public | CurrentTask returns an instance of ITask with the current task. |
DefaultHandler | public | Provides the interface for a method that processes message records. |
Destroy | public | Destroys this instance of TTask. |
Dispatch | public | Calls message-handling methods for the object, based on the contents of the Message parameter. |
DisposeOf (deprecated) | public | DisposeOf forces the execution of the destructor code in an object. |
DoWaitForAll | protected | DoWaitForAll pauses the calling task until an array of tasks finishes or the Timeout occurs. |
DoWaitForAny | protected | DoWaitForAny pauses the calling task until any of the tasks in the array finishes or the Timeout occurs. |
Equals | public | Checks whether the current instance and the Obj parameter are equal. |
Execute | protected | |
ExecuteReplicates | protected | |
ExecuteWork | protected | |
FieldAddress | public | Returns the address of a published object field. |
FinalCompletion | protected | |
ForgetChild | protected | |
Free | public | Destroys an object and frees its associated memory, if necessary. |
FreeInstance | public | |
Future | public | Future accepts a function able to run in a parallel thread, returning an interface used to get the result at the point in the program that is needed. |
GetControlFlag | protected | |
GetDisposed | protected | Getter for the Disposed property. |
GetExceptionObject | protected | |
GetHasExceptions | protected | |
GetHashCode | public | Returns an integer containing the hash code. |
GetId | protected | Returns the unique interger ID. |
GetInterface | public | Retrieves a specified interface. |
GetInterfaceEntry | public | Returns the entry for a specific interface implemented in a class. |
GetInterfaceTable | public | Returns a pointer to a structure containing all of the interfaces implemented by a given class. |
GetIsCanceled | protected | Checks the state of the task and returns True if it is canceled or False otherwise. |
GetIsComplete | protected | Checks the state of the task and returns True if it is completed or False otherwise. |
GetIsQueued | protected | Checks the state of the task and returns True if it is included in the queue of tasks or False otherwise. |
GetIsReplicating | protected | Checks the state of the task and returns True if it is a replica of other task or False otherwise. |
GetIsStartCanceled | protected | |
GetStatus | protected | GetStatus obtains the Status of the calling task as a variable of type TTaskStatus. |
GetWasExceptionRaised | protected | Checks the state of the task and returns True if the task caused an exception or False otherwise. |
HandleChildCompletion | protected | |
HandleException | protected | |
InheritsFrom | public | Determines the relationship of two object types. |
InitInstance | public | Initializes a newly allocated object instance to all zeros and initializes the instance's virtual method table pointer. |
InstanceSize | public | Returns the size in bytes of each instance of the object type. |
IntermediateCompletion | protected | |
InternalExecute | protected | |
InternalExecuteNow | protected | |
InternalWork | protected | |
MarkAsStarted | protected | Automatically marks the task as having started. It returns True if the function successfully marks the task as having started. It returns False if the task has already been marked as started or the process has already been completed. |
MethodAddress | public | Returns the address of a class method by name. |
MethodName | public | Returns the name of a class method by address. |
NewId | protected | Returns a non-zero unique integer Id. |
NewInstance | public | |
operator () | public | |
ProcessCompleteEvents | protected | |
QualifiedClassName | public | Returns the qualified name of the class. |
QueryInterface | protected | Implements the IInterfaceQueryInterface method. |
QueueEvents | protected | |
RemoveCompleteEvent | protected | |
Run | public | Run starts running a task and returns an instance of ITask. |
SafeCallException | public | Handles exceptions in methods declared using the safecall calling convention. |
SetComplete | protected | Sets the state of the task to Completed if the task is finished. |
SetExceptionObject | protected | |
SetRaisedState | protected | |
SetTaskStop | protected | |
ShouldCreateReplica | protected | |
ShouldExecute | protected | |
Start | protected | Start runs the calling task and returns an ITask instance of this task. |
ToString | public | Returns a string containing the class name. |
TryExecuteNow | protected | |
UnitName | public | Returns the name of the unit where the class is defined. |
UnitScope | public | Returns the class's unit scope. |
UpdateStateAtomic | protected | |
Wait | protected | Implements the wait function of ITask. |
WaitForAll | public | WaitForAll calls DoWaitForAll, which waits for all the tasks in the array to be completed. |
WaitForAny | public | WaitForAny calls DoWaitForAny, which waits for any of the tasks in the array to be completed. |