summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorDong Jinguang <dongjinguang@huawei.com>2018-01-02 23:19:57 +0800
committerDong Jinguang <dongjinguang@huawei.com>2018-01-04 09:35:40 +0800
commitbb877e273b651aab6238f0320b4c2cac64f97a94 (patch)
tree2f446c2caad83fb1ab435da17d665b138becebb5 /libutils/Unicode.cpp
parent93d344d98cd02d66c3aac8067718be828ea283f9 (diff)
system property: property set without time spent asleep
There is a 2s timeout for system property set that currently uses boot_clock as its clock source. If the system goes to sleep during a property set, it may erroneously cause the timeout to be reached as boot_clock increments during sleep. This patch changes from boot_clock to steady_clock to ignore time spent asleep when determining this timeout. bug: 71497234 Test: 1. System service process try to set a system property with timeout 2s 2. At the same time, the system go into sleep mode more than 2s 3. System property set will be ok. Change-Id: I808b9af16974a0f4de60a4ca30ae64d095a13422
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions