Public Member Functions

GridBoolFutureImpl Class Reference

#include <gridfutureimpl.hpp>

Inheritance diagram for GridBoolFutureImpl:
GridClientBoolFuture

List of all members.

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)

Detailed Description

Boost-based implementation of the Grid future.


Member Function Documentation

virtual bool GridBoolFutureImpl::get (  )  const [inline, virtual]

Waits for future to finish and returns the result of operation.

Returns:
true if the operation succeeded, false otherwise.

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.

Parameters:
timeout Time to wait for result.
Returns:
true if the operation succeeded, false otherwise.
Exceptions:
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.

Parameters:
pt Boost packaged task.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends