Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9b2b762c authored by Jerome Gaillard's avatar Jerome Gaillard
Browse files

Make a CommonPool for host builds

CommonPool uses some APIs that are only available on Android builds for
the setting up of the threads in the constructor. This creates
CommonPoolBase as a superclass of CommonPool to contain a setupThread
method. We provide two implementations of CommonPoolBase, one for
Android which copies the setup performed originally in CommonPool.cpp,
and one version for host which removes the calls to Android specific
APIs.
In addition, this adds a way to unblock the threads in the destructor of
CommonPool, as the destructor would otherwise get stuck if ever called.

Bug: 322360037
Test: libhwui tests
Change-Id: I26d67d36a2d5946c56bde375fd2810b5e395193f
parent cf5fa2a3
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