Skip to content

Commit

Permalink
Minor bug fixes to hg::async
Browse files Browse the repository at this point in the history
  • Loading branch information
Mankarse committed Sep 19, 2017
1 parent 5e1adcb commit 001b96c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/async.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace hg {
pool(pool),
ended(false) {}

void thread_comm_data::become_idle() {
void become_idle() {
pool->push_idle_thread(this);
}
move_function<void()> get_next() {
Expand All @@ -26,7 +26,7 @@ namespace hg {
cv.wait(l, [&] {return f || ended; });
move_function<void()> retF;
boost::swap(retF, f);
return { retF };
return retF;
}
void set_f(move_function<void()> &&new_f) {
{
Expand Down

0 comments on commit 001b96c

Please sign in to comment.