summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2016-02-16 10:30:33 -0800
committerDianne Hackborn <hackbod@google.com>2016-02-19 18:29:34 -0800
commitb0001f6fb1383d9824c2733896b0b348e7f77240 (patch)
tree33875a7674f9a882d88735264026e77e008c977b /tools/aapt2/java/JavaClassGenerator_test.cpp
parent9d3a4e1c31e07d37edc59cf7613cd392152b9d26 (diff)
Remove internal locking from JobStatus.
Now all state of JobStatus is implicitly protected by the lock of whoever is using it -- in this case the global lock for the JobSchedulerService. This allows us to remove all of the atomic variables and just replace those with a simple bit field. The required constraints for a job are now statically defined once a JobStatus is created, and don't change. (They wouldn't change before, but now this is absolutely specified to be the case.) This required tweaking the constructors a bit so that the earliest and latest run times are computed as part of the core class initialization. Also clarified methods on StateController that are called with the lock held, and took advantage of that in the various controllers to not now redundantly re-acquire the lock. Change-Id: I595c5e7d1bff1bd2ff906d612581af82878a25ee
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions