diff options
Diffstat (limited to 'boost/thread/win32/condition_variable.hpp')
-rw-r--r-- | boost/thread/win32/condition_variable.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/thread/win32/condition_variable.hpp b/boost/thread/win32/condition_variable.hpp index f4b535f74b..7f670bb990 100644 --- a/boost/thread/win32/condition_variable.hpp +++ b/boost/thread/win32/condition_variable.hpp @@ -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); @@ -221,7 +221,7 @@ namespace boost } ~entry_manager() BOOST_NOEXCEPT_IF(false) { - remove_waiter(); + remove_waiter_and_reset(); } list_entry* operator->() @@ -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; } |