OSDN Git Service

Make sure to mutex around job-set iteration
authorChristopher Tate <ctate@google.com>
Wed, 17 Jan 2018 22:40:38 +0000 (14:40 -0800)
committerChristopher Tate <ctate@google.com>
Wed, 17 Jan 2018 23:02:21 +0000 (15:02 -0800)
commit998fb4e80e2edad9baf5c07432442b6418e2674c
tree93eb6a3ef0c12e0a785a62429ff35f4e5789e15c
parent182b3f994b0849ca590d75d03a24361ede89ba0c
Make sure to mutex around job-set iteration

If something mucks with the job set while we're iterating through
it, we're going to have a bad day.

Change-Id: I2e5603f4dd025b2e1819c7e84d59882bad98ae7a
Fixes: 72105511
Test: atest CtsJobSchedulerTestCases
Test: atest FrameworksServicesTests:com.android.server.job.BackgroundRestrictionsTest
services/core/java/com/android/server/job/controllers/BackgroundJobsController.java