[BW]: [Fix] fc::task_base class member initialization.

This commit is contained in:
vogel76 2014-01-06 23:58:38 +01:00
parent c84b69e094
commit 08ab455dff
2 changed files with 7 additions and 2 deletions

View file

@ -13,7 +13,7 @@ namespace fc {
void run(); void run();
protected: protected:
~task_base(); ~task_base();
/// Task priority looks like unsupported feature.
uint64_t _posted_num; uint64_t _posted_num;
priority _prio; priority _prio;
time_point _when; time_point _when;

View file

@ -9,7 +9,12 @@
namespace fc { namespace fc {
task_base::task_base(void* func) 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() { void task_base::run() {