Commit 074b8b7
Jeff Brown
Eliminate potential reentrance from unregisterInputChannel.
Ensure that all callbacks into the window manager policy occur
on the input dispatcher thread in the right place. This fixes
a potential deadlock that may occur if the window manager
unregisters an input channel while holding its own lock.
The change is simply to defer running asynchronous commands
(usually callbacks into the policy) until the next iteration
of the dispatch looper thread.
Bug: 7382388
Change-Id: I90095580d717fcddb2209ef332df56400f837a341 parent c8dc8eb commit 074b8b7
2 files changed
+16
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
228 | 232 | | |
| 233 | + | |
| 234 | + | |
229 | 235 | | |
230 | | - | |
| 236 | + | |
231 | 237 | | |
232 | 238 | | |
233 | 239 | | |
| |||
562 | 568 | | |
563 | 569 | | |
564 | 570 | | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
565 | 575 | | |
566 | 576 | | |
567 | 577 | | |
| |||
3247 | 3257 | | |
3248 | 3258 | | |
3249 | 3259 | | |
3250 | | - | |
3251 | | - | |
3252 | 3260 | | |
| 3261 | + | |
| 3262 | + | |
| 3263 | + | |
3253 | 3264 | | |
3254 | 3265 | | |
3255 | 3266 | | |
| |||
3294 | 3305 | | |
3295 | 3306 | | |
3296 | 3307 | | |
3297 | | - | |
3298 | | - | |
3299 | 3308 | | |
3300 | 3309 | | |
3301 | 3310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
| 902 | + | |
902 | 903 | | |
903 | 904 | | |
904 | 905 | | |
| |||
0 commit comments