summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Jerome Gaillard <jgaillard@google.com> 2024-03-14 18:55:30 +0000
committer Jerome Gaillard <jgaillard@google.com> 2024-03-14 19:14:53 +0000
commit9b2b762cf88f4719807cbf56a046df65b6574e56 (patch)
tree8934ca3befc66a79f425e7a8a9f5741f2acb6c5e /libs/androidfw/ObbFile.cpp
parentcf5fa2a35f743624ae1a5c572913fd7cea82346d (diff)
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
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions