2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-19 14:22:23 +00:00

remove redundant asign of false to obtained_ in packaged_task

This commit is contained in:
Oliver Kowalke
2015-12-17 20:06:49 +01:00
parent 7d3b9aee57
commit eddd1e7309

View File

@@ -123,11 +123,10 @@ public:
if ( ! valid() ) {
throw packaged_task_uninitialized{};
}
obtained_ = false;
packaged_task tmp;
tmp.task_ = task_;
obtained_ = false;
task_ = tmp.task_->reset();
obtained_ = false;
}
};