Merge "configstore: respect service registration status."
am: e8e87df57f
Change-Id: I528fc4914ab9b1da49825b425bd5672e0b117add
This commit is contained in:
commit
9761a112e1
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue