|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50280 - sandbox/thread_safe_signals/trunk/boost/signals2
From: fmhess_at_[hidden]
Date: 2008-12-15 14:34:09
Author: fmhess
Date: 2008-12-15 14:34:09 EST (Mon, 15 Dec 2008)
New Revision: 50280
URL: http://svn.boost.org/trac/boost/changeset/50280
Log:
Make sure weak_ptr is expired, and doesn't just refer to a null
shared_ptr.
Text files modified:
sandbox/thread_safe_signals/trunk/boost/signals2/connection.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: sandbox/thread_safe_signals/trunk/boost/signals2/connection.hpp
==============================================================================
--- sandbox/thread_safe_signals/trunk/boost/signals2/connection.hpp (original)
+++ sandbox/thread_safe_signals/trunk/boost/signals2/connection.hpp 2008-12-15 14:34:09 EST (Mon, 15 Dec 2008)
@@ -54,7 +54,7 @@
{
unique_lock<connection_body_base> lock(*this);
shared_ptr<void> blocker = _weak_blocker.lock();
- if(blocker == 0)
+ if(blocker == shared_ptr<void>())
{
blocker.reset(this, &null_deleter);
_weak_blocker = blocker;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk