diff options
| author | 2021-11-16 09:49:29 +0000 | |
|---|---|---|
| committer | 2021-11-16 09:49:29 +0000 | |
| commit | ad9c77bbc32eef24824091cf672f988c9e245657 (patch) | |
| tree | c5545acbb8814a38e08d63d6bf7bdc58ba25dc47 /libs/gui/LayerState.cpp | |
| parent | 08a30ad2326903224ca0658f50df95997e7a5217 (diff) | |
binder_tokio: only use threadpool for new transactions
The binder kernel driver will detect whether a binder transaction is
started from a thread that is already handling a transaction, and if-so,
use some special logic to avoid deadlocks. This CL makes the async Rust
wrapper check whether we are handling a transaction before offloading
transactions to the `spawn_blocking` thread pool. This avoids breaking
the deadlock prevention in the kernel.
Test: m
Change-Id: If2707c464a4043c80bd893314113b65ef4633baf
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions