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

Commit f88a9fe4 authored by Steven Moreland's avatar Steven Moreland
Browse files

configstore: respect service registration status.

Bug: 36424561
Test: pass
Change-Id: I546af49d589e455b6dd97ca45d2330aa82059a4a
parent 69c546ba
Loading
Loading
Loading
Loading
+9 −1
Original line number Original line Diff line number Diff line
@@ -24,10 +24,18 @@ using android::hardware::configureRpcThreadpool;
using android::hardware::registerPassthroughServiceImplementation;
using android::hardware::registerPassthroughServiceImplementation;
using android::hardware::joinRpcThreadpool;
using android::hardware::joinRpcThreadpool;


using android::status_t;
using android::OK;

int main() {
int main() {
    // TODO(b/34857894): tune the max thread count.
    // TODO(b/34857894): tune the max thread count.
    configureRpcThreadpool(10, true);
    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
    // other interface registration comes here
    joinRpcThreadpool();
    joinRpcThreadpool();
    return 0;
    return 0;