Adjust ReleaseReference() to also return the previous ref count as

AcquireReference() now does, and adjust all callers that relied on the previous
return type.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42091 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent
2011-06-10 22:31:33 +00:00
parent d73d70971b
commit 8c3c117201
4 changed files with 9 additions and 8 deletions
+3 -2
View File
@@ -17,9 +17,10 @@ public:
BReferenceable();
virtual ~BReferenceable();
// acquire and release return
// the previous ref count
int32 AcquireReference();
bool ReleaseReference();
// returns true after last
int32 ReleaseReference();
int32 CountReferences() const
{ return fReferenceCount; }