Public Member Functions | |
| Promise () ONIXS_FIXENGINE_NOTHROW | |
| Promise (const Promise< T > &other) ONIXS_FIXENGINE_NOTHROW | |
| Promise< T > & | operator= (const Promise< T > &other) ONIXS_FIXENGINE_NOTHROW |
| void | swap (Promise< T > &other) ONIXS_FIXENGINE_NOTHROW |
| SharedFuture< T > | getFuture () const |
| void | set (const T &value) |
| template<typename ExceptionType> | |
| void | setException (const ExceptionType &exception) |
| Public Member Functions inherited from PromiseBase | |
| bool | valid () |
| ONIXS_FIXENGINE_API void | setExceptionImpl () |
Additional Inherited Members | |
| Protected Member Functions inherited from PromiseBase | |
| ONIXS_FIXENGINE_API | PromiseBase () ONIXS_FIXENGINE_NOTHROW |
| ONIXS_FIXENGINE_API | PromiseBase (const PromiseBase &other) ONIXS_FIXENGINE_NOTHROW |
| ONIXS_FIXENGINE_API PromiseBase & | operator= (const PromiseBase &other) ONIXS_FIXENGINE_NOTHROW |
| ONIXS_FIXENGINE_API | ~PromiseBase () ONIXS_FIXENGINE_NOTHROW |
| ONIXS_FIXENGINE_API void | swap (PromiseBase &other) ONIXS_FIXENGINE_NOTHROW |
| ONIXS_FIXENGINE_API void | setValue (ValueBase *value) |
| ONIXS_FIXENGINE_API void | setVoid () |
| ONIXS_FIXENGINE_API SharedFuture< FutureValue > | getFutureImpl () const |
| template<typename T> | |
| SharedFuture< T > | getTypedFuture () const |
Each Promise object is associated with a shared state, which contains a some state information and a result which may be not yet evaluated, evaluated to a value or evaluated to an exception. The promise stores the result or the exception in the shared state. Marks the state ready and unblocks any thread waiting on a future associated with the shared state.
|
inline |
|
inline |
|
inline |