From Tim Moore, refactore WeakReference/Referenced to avoid signalling the observers when do a unref_nodelete.

This commit is contained in:
Robert Osfield
2010-05-17 09:03:44 +00:00
parent 4d88ba6efe
commit f832198128
3 changed files with 9 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ struct WeakReference : public Observer, public Referenced
// The object is in the process of being deleted, but our
// objectDeleted() method hasn't been run yet (and we're
// blocking it -- and the final destruction -- with our lock).
_ptr->unref_nodelete();
_ptr->unref_nodelete(false);
return 0;
}
return _ptr;