
Protected Member Functions | |
| Future (ResultType res) | |
| Constructor. | |
Protected Attributes | |
| ResultType | result |
| A placeholder for the task's result. | |
Properties | |
| bool | IsDone [get] |
true if the task has completed, false otherwise. | |
| ResultType | Result [get] |
| The task's result. | |
Spawns a thread to perform a task asynchronously, providing means to probe for completion or to wait until the task's result is available. TODO: Review the whole implementation.
| ResultType |
| DotNX::Core::Future< ResultType >::Future | ( | ResultType | res | ) | [protected] |
Constructor.
| res | The result's initial value, in case it may serve as accumulator. |
ResultType DotNX::Core::Future< ResultType >::result [protected] |
A placeholder for the task's result.
To be accessed only from within the spawned thread!
bool DotNX::Core::Future< ResultType >::IsDone [get] |
true if the task has completed, false otherwise.
Doesn't block if the task is still in progress.
ResultType DotNX::Core::Future< ResultType >::Result [get] |
The task's result.
Blocks until the task has completed.