mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 20:24:19 +00:00
Merge "configstore: respect service registration status."
This commit is contained in:
@@ -24,10 +24,18 @@ using android::hardware::configureRpcThreadpool;
|
||||
using android::hardware::registerPassthroughServiceImplementation;
|
||||
using android::hardware::joinRpcThreadpool;
|
||||
|
||||
using android::status_t;
|
||||
using android::OK;
|
||||
|
||||
int main() {
|
||||
// TODO(b/34857894): tune the max thread count.
|
||||
configureRpcThreadpool(10, true);
|
||||
registerPassthroughServiceImplementation<ISurfaceFlingerConfigs>();
|
||||
|
||||
status_t status;
|
||||
|
||||
status = registerPassthroughServiceImplementation<ISurfaceFlingerConfigs>();
|
||||
LOG_ALWAYS_FATAL_IF(status != OK, "Could not register ISurfaceFlingerConfigs");
|
||||
|
||||
// other interface registration comes here
|
||||
joinRpcThreadpool();
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user