Skip to content

Commit

Permalink
[BW]: [Fix] fc::task_base class member initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
vogel76 committed Jan 6, 2014
1 parent c84b69e commit 08ab455
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/fc/thread/task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 6 additions & 1 deletion src/thread/task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 08ab455

Please sign in to comment.