OSDN Git Service

RefBase subclasses can now decide how they want to be destroyed.
authorMathias Agopian <mathias@google.com>
Fri, 20 May 2011 01:03:31 +0000 (18:03 -0700)
committerMathias Agopian <mathias@google.com>
Mon, 23 May 2011 23:13:48 +0000 (16:13 -0700)
commit3d6881f3940dd19268006e71dd2ed9896588dfb6
tree7cd587807e26896f4cbc34e5aa47319c0c5df55f
parent34cd9b72f1474ccbfd2338049d81a24bfa814f35
RefBase subclasses can now decide how they want to be destroyed.

This adds a destroy() virtual on RefBase which
sublasses can implement. destroy() is called
in lieu of the destructor whenthe last strong
ref goes away.

Bug: 4483050
Change-Id: I8cbf6044a6fd3f01043a45592b5a60fa1e5fade2
include/utils/RefBase.h
libs/utils/RefBase.cpp