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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user