Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在android相机框架中,私有成员代表CameraService类的cameraclient,声明为:wp mClient[MAX_CAMERAS];
为什么它声称是 wp,而不是 sp?
现在明白原理了。wp需要提升为sp,然后做一些实际的工作。有时真正的obj可能已经被破坏,并且wp存在,但是sp为零。