diff --git a/include/fc/thread/task.hpp b/include/fc/thread/task.hpp index f86ce37..664a5db 100644 --- a/include/fc/thread/task.hpp +++ b/include/fc/thread/task.hpp @@ -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; diff --git a/src/thread/task.cpp b/src/thread/task.cpp index c6c6a0e..b963f2c 100644 --- a/src/thread/task.cpp +++ b/src/thread/task.cpp @@ -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() {