Moved 'garbage collector' to sp_collector.cpp, collector_test.cpp added.

[SVN r17050]
This commit is contained in:
Peter Dimov
2003-01-27 14:02:00 +00:00
parent b60de38d28
commit fabd6e5755
4 changed files with 375 additions and 199 deletions

View File

@@ -355,6 +355,9 @@ public:
~shared_count() // nothrow
{
if(pi_ != 0) pi_->release();
#if defined(BOOST_ENABLE_SP_DEBUG_HOOKS)
id_ = 0;
#endif
}
shared_count(shared_count const & r): pi_(r.pi_) // nothrow
@@ -455,6 +458,9 @@ public:
~weak_count() // nothrow
{
if(pi_ != 0) pi_->weak_release();
#if defined(BOOST_ENABLE_SP_DEBUG_HOOKS)
id_ = 0;
#endif
}
weak_count & operator= (shared_count const & r) // nothrow