diff options
| author | Christopher Tate <ctate@google.com> | 2010-03-19 14:50:40 -0700 |
|---|---|---|
| committer | Christopher Tate <ctate@google.com> | 2010-03-19 15:28:43 -0700 |
| commit | 4cee725b1fd3958d850fc83214797f76d5f6b468 (patch) | |
| tree | cdc534fbe0ed664d9d821a9402398f1b5586ae16 /tools/aapt2/diff/Diff.cpp | |
| parent | db129b886fedad1e57ff185ac680cdf3c34b1b99 (diff) | |
Use atomic++ rather than lock/++/unlock in the input dispatch code path
Decouples the input dispatch thread from the battery-stats object lock regime,
to avoid the possibility of ever blocking the input dispatch thread on its
behalf. The stats object is widely used and can sometimes be locked for a
very long time (on the order of seconds) during certain extensive dump
operations.
This change does not alter the data format of the battery stats' externalized
representations.
Fixes bug #2530346
Change-Id: Iee288be3bf4936641b532dceecb8f6de8f552bf0
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions
