QuantumLibrary
|
Shared state used between a Promise and a Future to exchange values. More...
#include <quantum_shared_state.h>
Public Member Functions | |
template<class V = T> | |
int | set (V &&value) |
template<class V = T> | |
int | set (ICoroSync::Ptr sync, V &&value) |
T | get () |
T | get (ICoroSync::Ptr sync) |
const T & | getRef () const |
const T & | getRef (ICoroSync::Ptr sync) const |
void | breakPromise () |
void | wait () const |
void | wait (ICoroSync::Ptr sync) const |
template<class REP , class PERIOD > | |
std::future_status | waitFor (const std::chrono::duration< REP, PERIOD > &time) const |
template<class REP , class PERIOD > | |
std::future_status | waitFor (ICoroSync::Ptr sync, const std::chrono::duration< REP, PERIOD > &time) const |
int | setException (std::exception_ptr ex) |
int | setException (ICoroSync::Ptr sync, std::exception_ptr ex) |
Friends | |
class | Promise< T > |
Shared state used between a Promise and a Future to exchange values.
void Bloomberg::quantum::SharedState< T >::breakPromise | ( | ) |
T Bloomberg::quantum::SharedState< T >::get | ( | ) |
T Bloomberg::quantum::SharedState< T >::get | ( | ICoroSync::Ptr | sync | ) |
const T & Bloomberg::quantum::SharedState< T >::getRef | ( | ) | const |
const T & Bloomberg::quantum::SharedState< T >::getRef | ( | ICoroSync::Ptr | sync | ) | const |
int Bloomberg::quantum::SharedState< T >::set | ( | ICoroSync::Ptr | sync, |
V && | value | ||
) |
int Bloomberg::quantum::SharedState< T >::setException | ( | std::exception_ptr | ex | ) |
int Bloomberg::quantum::SharedState< T >::setException | ( | ICoroSync::Ptr | sync, |
std::exception_ptr | ex | ||
) |
void Bloomberg::quantum::SharedState< T >::wait | ( | ) | const |
void Bloomberg::quantum::SharedState< T >::wait | ( | ICoroSync::Ptr | sync | ) | const |
std::future_status Bloomberg::quantum::SharedState< T >::waitFor | ( | const std::chrono::duration< REP, PERIOD > & | time | ) | const |
std::future_status Bloomberg::quantum::SharedState< T >::waitFor | ( | ICoroSync::Ptr | sync, |
const std::chrono::duration< REP, PERIOD > & | time | ||
) | const |