[BW]: [Fix] fc::task_base class member initialization.
This commit is contained in:
parent
c84b69e094
commit
08ab455dff
2 changed files with 7 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ namespace fc {
|
|||
void run();
|
||||
protected:
|
||||
~task_base();
|
||||
|
||||
/// Task priority looks like unsupported feature.
|
||||
uint64_t _posted_num;
|
||||
priority _prio;
|
||||
time_point _when;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,12 @@
|
|||
|
||||
namespace fc {
|
||||
task_base::task_base(void* func)
|
||||
:_functor(func){
|
||||
:
|
||||
_posted_num(0),
|
||||
_active_context(nullptr),
|
||||
_next(nullptr),
|
||||
_promise_impl(nullptr),
|
||||
_functor(func){
|
||||
}
|
||||
|
||||
void task_base::run() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue