2
0
mirror of https://github.com/boostorg/thread.git synced 2026-01-24 06:22:12 +00:00

#130 - Bug in boost::condition_variable on Windows.

This commit is contained in:
Vicente J. Botet Escriba
2017-08-24 08:45:36 +02:00
parent 32229388f5
commit db6de8fd42

View File

@@ -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);
@@ -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;
}