https://www.androidos.net.cn/sourcecode
记录下源码阅读地址
#include <private/binder/Static.h>
ProcessState::self()函数中自动锁Mutex::Autolock _l(gProcessMutex);的gProcessMutex指针位于private/binder/Static.h头文件中
BpRefBase位于frameworks/native/libs/binder/include/binder/Binder.h中定义,实现具体如下在Binder.cpp文件中
BpRefBase::BpRefBase(const sp<IBinder>& o) : mRemote(o.get()), mRefs(NULL), mState(0)
remote()函数也在该头文件中定义,inline IBinder* remote() { return mRemote; } mRemote即为BpRefBase的构造函数中调用的o。get()即BpBinder