#include <gridfutureimpl.hpp>
Public Member Functions | |
| GridBoolFutureImpl (TGridThreadPoolPtr &threadPool) | |
| virtual bool | get () const |
| virtual bool | get (const boost::posix_time::time_duration &timeout) const |
| void | task (boost::packaged_task< bool > &pt) |
Boost-based implementation of the Grid future.
| virtual bool GridBoolFutureImpl::get | ( | ) | const [inline, virtual] |
Waits for future to finish and returns the result of operation.
Implements GridClientBoolFuture.
| virtual bool GridBoolFutureImpl::get | ( | const boost::posix_time::time_duration & | timeout | ) | const [inline, virtual] |
Waits for future to finish and returns the result of operation.
| timeout | Time to wait for result. |
true if the operation succeeded, false otherwise. | GridClientException | In case an operation has thrown exception (it is rethrown). | |
| GridClientFutureTimeoutException | If timed out before future finishes. |
Implements GridClientBoolFuture.
| void GridBoolFutureImpl::task | ( | boost::packaged_task< bool > & | pt | ) | [inline] |
Initializes future based on boost packaged task.
| pt | Boost packaged task. |
1.7.1