summaryrefslogtreecommitdiff
path: root/libs/hwui/ProgramCache.cpp
diff options
context:
space:
mode:
author Fyodor Kupolov <fkupolov@google.com> 2015-10-28 14:54:51 -0700
committer Fyodor Kupolov <fkupolov@google.com> 2015-11-03 11:56:33 -0800
commit82402753815ff4633cc572713ae490a17d9129e5 (patch)
treed3e711b013910f4b899df61b84f8bae51f518322 /libs/hwui/ProgramCache.cpp
parent4f16073556f7978708fb71c87628cfe1692412d5 (diff)
Introduced short-term lock for UMS internal state
Added mUsersLock - short-term lock for internal state, when interaction and synchronization with PM is not required. Modifications to mUsers and mRemovingUserIds must be guarded by 3 locks: mInstallLock, mPackagesLock and mUsersLock. While reads can use mUsersLock. Testing revealed that the following methods in UMS often cause contention: - exists - getUserInfo - getProfileParent They all now use a short-term lock mUsersLock for reads. Bug: 24979571 Change-Id: Ie3a22ea7cbb450c7969800fe2a4a2b2516165e5b
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions