Skip to content

Commit

Permalink
Continue with Regular Posting on Wakeup Failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sever Topan committed Mar 26, 2018
1 parent a2bb847 commit b60772e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions include/thread_pool/thread_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,8 @@ inline bool GenericThreadPool<Task, Queue>::tryPostImpl(Handler&& handler, size_
// processing the items in its queue. We then re-try posting our current task.
if (success)
return true;
else
{
if (failedWakeupRetryCap == 0)
return false;

else if (failedWakeupRetryCap > 0)
return tryPostImpl(std::forward<Handler>(handler), failedWakeupRetryCap - 1);
}
}
}

Expand Down

0 comments on commit b60772e

Please sign in to comment.