Skip to content
Commit 97d28b3d authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN
Browse files

Do not block for HandlerThread start

Instead of calling HandlerThread#getLooper immediately after starting
it, do it asynchronously in onLooperPrepared.

getLooper blocks until the looper is ready, which may take a significant
amount of time.

This involves queueing tasks until the looper is ready, so the thread
selection logic is refactored to a dedicated class.

Test: atest
Change-Id: I0444bffe8e4bb4e3f29bd0271c7b24bc46a62cf6
parent 96361bc4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment