\frameworks\native\libs\binder\ProcessState.cpp数据结构
class ProcessState : public virtual RefBase继承
如上,方法是类实现继承RefBase, 这样就继承了操做方法与相关计数数据结构。class
使用方法: sp<ProcessState> proc = new ProcessState;方法
sp is defined in
\frameworks\native\include\utils\StrongPointer.h数据