As a base class, this object provides a simple way to create a derived class, that can pass all the parameters needed, to a threaded function. Even when not derived from it provides a simple but limited way for the called Thread and the calling thread to communicate The calling thread may only READ member variables after starting the thread. Once this flag goes false, the calling thread may read or write all the other values. There is no "locking" implemented internally to ensure good behavior, so be cautious. It is the responsibility of the called thread to set all the values in this class, before setting the isProcessing flag to false.
|
| ProgressThreadParam () |
| Parameterless constructor initialized local values such as progress, and isProcessing
|
|
|
string | failureText |
| only valid when isProcessing is false, and the thread had been started, and success is false. written to by the running thread.
|
|
bool | isProcessing |
| specifies if the thread has started/finished running.
|
|
Thread | runnigThreadRef |
| reference to the thread process itself
|
|
float | startTime |
| time recorded when thread began
|
|
bool | success |
| only valid when isProcessing is false, and the thread had been started. Written to by the running thread to specify success or failure of the process.
|
|
|
float | progress [get, set] |
| float value that goes between 0 and 1. Written to by the running thread, it may only be read by other threads.
|
|
Inherits object.