|
BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
#include <task.hpp>
Public Types | |
| typedef std::shared_ptr< task< R, FunctorSize > > | ptr |
Public Types inherited from fc::promise_base | |
| typedef std::shared_ptr< promise_base > | ptr |
Public Types inherited from fc::promise< R > | |
| typedef std::shared_ptr< promise< R > > | ptr |
Public Member Functions | |
| virtual | ~task () |
| virtual void | cancel (const char *reason FC_CANCELATION_REASON_DEFAULT_ARG) override |
Public Member Functions inherited from fc::task_base | |
| void | run () |
| virtual | ~task_base () |
| void | retain () |
| void | release () |
Public Member Functions inherited from fc::promise_base | |
| 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) |
Public Member Functions inherited from fc::promise< R > | |
| virtual | ~promise () |
| const R & | wait (const microseconds &timeout=microseconds::maximum()) |
| const R & | wait_until (const time_point &tp) |
| void | set_value (const R &v) |
| void | set_value (R &&v) |
| void | on_complete (CompletionHandler &&c) |
Static Public Member Functions | |
| template<typename Functor > | |
| static ptr | create (Functor &&f, const char *desc) |
Static Public Member Functions inherited from fc::promise< R > | |
| static ptr | create (const char *desc FC_TASK_NAME_DEFAULT_ARG) |
| static ptr | create (const R &val) |
| static ptr | create (R &&val) |
Additional Inherited Members | |
Protected Member Functions inherited from fc::task_base | |
| void | _set_active_context (context *) |
| task_base (void *func) | |
| void | run_impl () |
| void | cleanup_task_specific_data () |
Protected Member Functions inherited from fc::promise_base | |
| 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 Member Functions inherited from fc::promise< R > | |
| promise (const char *desc) | |
| promise (const R &val) | |
| promise (R &&val) | |
Protected Attributes inherited from fc::task_base | |
| 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 *) |
Protected Attributes inherited from fc::promise_base | |
| const char * | _cancellation_reason |
Protected Attributes inherited from fc::promise< R > | |
| optional< R > | result |
|
inlineoverridevirtual |
Reimplemented from fc::task_base.
1.8.17