BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
#include <task.hpp>
Public Types | |
typedef std::shared_ptr< task< void, FunctorSize > > | ptr |
![]() | |
typedef std::shared_ptr< promise_base > | ptr |
![]() | |
typedef std::shared_ptr< promise< void > > | ptr |
Public Member Functions | |
virtual | ~task () |
virtual void | cancel (const char *reason FC_CANCELATION_REASON_DEFAULT_ARG) override |
![]() | |
void | run () |
virtual | ~task_base () |
void | retain () |
void | release () |
![]() | |
virtual | ~promise_base () |
const char * | get_desc () const |
bool | canceled () const |
bool | ready () const |
bool | error () const |
void | set_exception (const fc::exception_ptr &e) |
![]() | |
virtual | ~promise () |
void | wait (const microseconds &timeout=microseconds::maximum()) |
void | wait_until (const time_point &tp) |
void | set_value () |
void | set_value (const void_t &) |
template<typename CompletionHandler > | |
void | on_complete (CompletionHandler &&c) |
Static Public Member Functions | |
template<typename Functor > | |
static ptr | create (Functor &&f, const char *desc) |
![]() | |
static ptr | create (const char *desc FC_TASK_NAME_DEFAULT_ARG) |
static ptr | create (bool fulfilled, const char *desc FC_TASK_NAME_DEFAULT_ARG) |
Additional Inherited Members | |
![]() | |
void | _set_active_context (context *) |
task_base (void *func) | |
void | run_impl () |
void | cleanup_task_specific_data () |
![]() | |
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) |
![]() | |
promise (const char *desc) | |
promise (bool fulfilled, const char *desc) | |
![]() | |
uint64_t | _posted_num |
Task priority looks like unsupported feature. More... | |
priority | _prio |
time_point | _when |
context * | _active_context |
task_base * | _next |
std::vector< detail::specific_data_info > * | _task_specific_data |
fwd< spin_lock, 8 > | _spinlock |
void * | _promise_impl |
void * | _functor |
void(* | _destroy_functor )(void *) |
void(* | _run_functor )(void *, void *) |
![]() | |
const char * | _cancellation_reason |
|
inlineoverridevirtual |
Reimplemented from fc::task_base.