commit | e0653fabe69a1de289f833402463699e87bb1eab | [log] [tgz] |
---|---|---|
author | Lucas Dupin <dupin@google.com> | Mon Oct 23 14:31:45 2017 -0700 |
committer | Lucas Dupin <dupin@google.com> | Tue Oct 24 17:52:58 2017 +0000 |
tree | 3817e0aa090adea1f7a841130a570cd8117df521 | |
parent | 4d3b424caea30a2e82211bdf7db73a7926034cb0 [diff] |
Fix SliceProvider threading Binding a slice that lives in the same process would lead to a deadlock since we'd sleep the main thread while waiting for it to decrease the CountdownLatch. Now we're checking if we're already in the main looper and only posting when necessary. Test: run code in ag/3082570 Change-Id: Id7c4f9dd8d84bf0e513606cbe07bf87750c567e4