diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2017-01-25 23:09:07 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2017-01-31 15:42:17 +0900 |
commit | ae3ce81cc350556b923da3d3d759cf204621aa12 (patch) | |
tree | 06dcec98b135b1087317b1d2c2a72b322230c9d1 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | c2e8588396ef713885f4b903a6e079218a135b3b (diff) |
Attempt to make waitForIdleHandler reliable.
The current implementation of IdleableHandlerThread is based on
the assumption that MessageQueue#isIdle will return true iff the
message loop has finished processing its messages.
Unfortunately, this is incorrect: isIdle returns true iff are no
more messages waiting in the queue; thus, it will also return
true while it is processing the last message before going idle.
Instead of using idle handlers, take the simpler approach of
posting a runnable to the message loop and waiting for it to
be processed.
Test: see other CLs in this patch series
Bug: 31479480
Change-Id: Iae75781f067b762c8653a488a5e4d5ee0c789e01
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions