STLdoc
STLdocumentation
|
Class represents a future corresponding to a C++ AMP asynchronous operation More...
#include <amprt.h>
Public Member Functions | |
completion_future () | |
Default constructor More... | |
completion_future (const completion_future &_Other) | |
Copy constructor More... | |
completion_future (completion_future &&_Other) | |
Move constructor More... | |
~completion_future () | |
Destructor More... | |
completion_future & | operator= (const completion_future &_Other) |
Copy assignment operator More... | |
completion_future & | operator= (completion_future &&_Other) |
Move assignment operator More... | |
void | get () const |
Waits until the associated asynchronous operation completes Throws the stored exception if one was encountered during the asynchronous operation More... | |
bool | valid () const |
Returns true if the object is associated with an asynchronous operation More... | |
void | wait () const |
Blocks until the associated asynchronous operation completes More... | |
template<class _Rep , class _Period > | |
std::future_status | wait_for (const std::chrono::duration< _Rep, _Period > &_Rel_time) const |
Blocks until the associated asynchronous operation completes or _Rel_time has elapsed More... | |
template<class _Clock , class _Duration > | |
std::future_status | wait_until (const std::chrono::time_point< _Clock, _Duration > &_Abs_time) const |
Blocks until the associated asynchronous operation completes or until the current time exceeds _Abs_time More... | |
operator std::shared_future< void > () const | |
Returns a std::shared_future<void> object corresponding to the associated asynchronous operation More... | |
template<typename _Functor > | |
void | then (const _Functor &_Func) const |
Chains a callback Functor to the completion_future to be executed when the associated asynchronous operation finishes execution More... | |
concurrency::task< void > | to_task () const |
Returns a concurrency::task<void> object corresponding to the associated asynchronous operation More... | |
Private Member Functions | |
completion_future (const std::shared_future< void > &_Shared_future, const concurrency::task< void > &_Task) | |
Private Attributes | |
std::shared_future< void > | _M_shared_future |
concurrency::task< void > | _M_task |
Friends | |
class | details::_Amp_runtime_trace |
Class represents a future corresponding to a C++ AMP asynchronous operation
|
inline |
Copy constructor
|
inline |
Move constructor
|
inlineprivate |
|
inline |
Waits until the associated asynchronous operation completes Throws the stored exception if one was encountered during the asynchronous operation
|
inline |
Returns a std::shared_future<void> object corresponding to the associated asynchronous operation
|
inline |
Copy assignment operator
|
inline |
Move assignment operator
|
inline |
Chains a callback Functor to the completion_future to be executed when the associated asynchronous operation finishes execution
|
inline |
Returns a concurrency::task<void> object corresponding to the associated asynchronous operation
|
inline |
Returns true if the object is associated with an asynchronous operation
|
inline |
Blocks until the associated asynchronous operation completes
|
inline |
Blocks until the associated asynchronous operation completes or _Rel_time has elapsed
|
inline |
Blocks until the associated asynchronous operation completes or until the current time exceeds _Abs_time
|
friend |
|
private |
|
private |