Loading automotive/vehicle/aidl/impl/vhal/src/VehicleService.cpp +7 −6 Original line number Diff line number Diff line Loading @@ -27,6 +27,13 @@ using ::android::hardware::automotive::vehicle::DefaultVehicleHal; using ::android::hardware::automotive::vehicle::fake::FakeVehicleHardware; int main(int /* argc */, char* /* argv */[]) { ALOGI("Starting thread pool..."); if (!ABinderProcess_setThreadPoolMaxThreadCount(4)) { ALOGE("%s", "failed to set thread pool max thread count"); return 1; } ABinderProcess_startThreadPool(); std::unique_ptr<FakeVehicleHardware> hardware = std::make_unique<FakeVehicleHardware>(); std::shared_ptr<DefaultVehicleHal> vhal = ::ndk::SharedRefBase::make<DefaultVehicleHal>(std::move(hardware)); Loading @@ -39,12 +46,6 @@ int main(int /* argc */, char* /* argv */[]) { return 1; } if (!ABinderProcess_setThreadPoolMaxThreadCount(4)) { ALOGE("%s", "failed to set thread pool max thread count"); return 1; } ABinderProcess_startThreadPool(); ALOGI("Vehicle Service Ready"); ABinderProcess_joinThreadPool(); Loading Loading
automotive/vehicle/aidl/impl/vhal/src/VehicleService.cpp +7 −6 Original line number Diff line number Diff line Loading @@ -27,6 +27,13 @@ using ::android::hardware::automotive::vehicle::DefaultVehicleHal; using ::android::hardware::automotive::vehicle::fake::FakeVehicleHardware; int main(int /* argc */, char* /* argv */[]) { ALOGI("Starting thread pool..."); if (!ABinderProcess_setThreadPoolMaxThreadCount(4)) { ALOGE("%s", "failed to set thread pool max thread count"); return 1; } ABinderProcess_startThreadPool(); std::unique_ptr<FakeVehicleHardware> hardware = std::make_unique<FakeVehicleHardware>(); std::shared_ptr<DefaultVehicleHal> vhal = ::ndk::SharedRefBase::make<DefaultVehicleHal>(std::move(hardware)); Loading @@ -39,12 +46,6 @@ int main(int /* argc */, char* /* argv */[]) { return 1; } if (!ABinderProcess_setThreadPoolMaxThreadCount(4)) { ALOGE("%s", "failed to set thread pool max thread count"); return 1; } ABinderProcess_startThreadPool(); ALOGI("Vehicle Service Ready"); ABinderProcess_joinThreadPool(); Loading