summaryrefslogtreecommitdiff
path: root/boost/thread/win32/condition_variable.hpp
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-09-13 11:26:20 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-09-13 11:27:13 +0900
commit88e602c57797660ebe0f9e15dbd64c1ff16dead3 (patch)
treee96e9e1d22b982c9f62f86f2357a1f53f9ef9dac /boost/thread/win32/condition_variable.hpp
parent4fadd968fa12130524c8380f33fcfe25d4de79e5 (diff)
downloadboost-88e602c57797660ebe0f9e15dbd64c1ff16dead3.tar.gz
boost-88e602c57797660ebe0f9e15dbd64c1ff16dead3.tar.bz2
boost-88e602c57797660ebe0f9e15dbd64c1ff16dead3.zip
Imported Upstream version 1.65.1upstream/1.65.1
Change-Id: Ie4005d637141f8311f4b6d46b613478a2b3dae59 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'boost/thread/win32/condition_variable.hpp')
-rw-r--r--boost/thread/win32/condition_variable.hpp6
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;
}