我正在阅读Android开源项目中的代码,我看到方法名称具有有趣结局的方法,如下所示: addSharedUserLPw()(在com.android.server.pm.Settings中) installPackageLI()(在com.android.server.pm.PackageManagerService中)
我确定LPw和LI等有意义,我只是不确定如何解决它们。任何人都可以提供更多相关信息吗?
答案 0 :(得分:0)
FWIW,frameworks/base/services/java/com/android/server/PackageManagerService.java
177. // Lock for state used when installing and doing other long running
178. // operations. Methods that must be called with this lock held have
179. // the prefix "LI".
...
196. // Keys are String (package name), values are Package. This also serves
197. // as the lock for the global state. Methods that must be called with
198. // this lock held have the prefix "LP".
提及 LI 和 LP ,如下所示:
{{1}}