BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
#include <future.hpp>
Public Types | |
typedef std::shared_ptr< promise_base > | ptr |
Public Member Functions | |
virtual | ~promise_base () |
const char * | get_desc () const |
virtual void | cancel (const char *reason FC_CANCELATION_REASON_DEFAULT_ARG) |
bool | canceled () const |
bool | ready () const |
bool | error () const |
void | set_exception (const fc::exception_ptr &e) |
Protected Member Functions | |
promise_base (const char *desc FC_TASK_NAME_DEFAULT_ARG) | |
void | _wait (const microseconds &timeout_us) |
void | _wait_until (const time_point &timeout_us) |
void | _notify () |
void | _set_value (const void *v) |
void | _on_complete (detail::completion_handler *c) |
Protected Attributes | |
const char * | _cancellation_reason |
Friends | |
class | thread |
struct | context |
class | thread_d |
Definition at line 61 of file future.hpp.
typedef std::shared_ptr<promise_base> fc::promise_base::ptr |
Definition at line 63 of file future.hpp.
|
virtual |
Definition at line 24 of file future.cpp.
|
protected |
Definition at line 11 of file future.cpp.
|
protected |
Definition at line 115 of file future.cpp.
|
protected |
Definition at line 134 of file future.cpp.
|
protected |
Definition at line 124 of file future.cpp.
|
protected |
Definition at line 49 of file future.cpp.
|
protected |
Definition at line 55 of file future.cpp.
|
virtual |
Reimplemented in fc::task< void, FunctorSize >, fc::task< R, FunctorSize >, and fc::task_base.
Definition at line 30 of file future.cpp.
|
inline |
Definition at line 69 of file future.hpp.
bool fc::promise_base::error | ( | ) | const |
Definition at line 40 of file future.cpp.
const char * fc::promise_base::get_desc | ( | ) | const |
Definition at line 26 of file future.cpp.
bool fc::promise_base::ready | ( | ) | const |
Definition at line 37 of file future.cpp.
void fc::promise_base::set_exception | ( | const fc::exception_ptr & | e | ) |
Definition at line 44 of file future.cpp.
|
friend |
Definition at line 90 of file future.hpp.
|
friend |
Definition at line 89 of file future.hpp.
|
friend |
Definition at line 91 of file future.hpp.
|
protected |
Definition at line 101 of file future.hpp.