Skip to content

Commit

Permalink
#130 - Bug in boost::condition_variable on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
viboes committed Aug 28, 2017
1 parent 3222938 commit db6de8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/thread/win32/condition_variable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ namespace boost
{}
#endif

void remove_waiter()
void remove_waiter_and_reset()
{
if (entry) {
boost::lock_guard<boost::mutex> internal_lock(internal_mutex);
Expand Down Expand Up @@ -250,7 +250,7 @@ namespace boost
woken=entry->woken();
}
// do it here to avoid throwing on the destructor
entry->remove_waiter();
entry.remove_waiter_and_reset();
locker.lock();
return woken;
}
Expand Down

0 comments on commit db6de8f

Please sign in to comment.