Returns thread information (any thread).
Unit
Syntax
ParametersAThreadID [in] TID (Thread ID) of a thread to get information.
AForce [in, optional] True: return dummy object for empty result, false (default): return nil for empty result.
Return valueInformation about the AThreadID thread. You have to destroy the returned object. This value could be nil for rare cases (such as calling this function before/after EThreadsManager's initialization/finalization), or if AThreadID does not identify a valid running thread. The return value is always non-nil if AForce argument is True.
RemarksUse this function to get information about any running thread.
You have to release the returned object. A new return value object is created for each function's call.
There is no need to use locking - because informational object for the thread will be individual for each function's call. Any change for dynamic properties (such as Name, LastException, LastHTMLPage) will be ignored. Use ThreadData function to modify thread's dynamic properties.
This function can return information about any running thread.
See also
|