[Android]如何支持sp 指针

\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数据

相关文章
相关标签/搜索