soolaugust
soolaugust

Reputation: 295

What's the meaning of "LSP" in aosp code?

I found many "*LSP" functions in AOSP code, Like applyOomAdjLSP in OomAdjuster.java. What does this mean?

Upvotes: 1

Views: 372

Answers (1)

Michael
Michael

Reputation: 58497

This abbreviation is explained in the ActivityManagerService source:

For the naming convention of function suffixes:

  • LOSP: Locked with any Of global am Service or Process lock
  • LSP: Locked with both of global am Service and Process lock
  • Locked: Locked with global am service lock alone
  • LPr: Locked with Process lock alone

Upvotes: 3

Related Questions