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

Commit 883a07d7 authored by Badhri Jagan Sridharan's avatar Badhri Jagan Sridharan Committed by Android (Google) Code Review
Browse files

Merge "usbd: Do not join the thread pool" into pi-dev

parents b94cc009 f123d45c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -22,15 +22,20 @@
#include <android-base/properties.h>
#include <android/hardware/usb/gadget/1.0/IUsbGadget.h>

#include <hidl/HidlTransportSupport.h>

#define PERSISTENT_USB_CONFIG "persist.sys.usb.config"

using android::base::GetProperty;
using android::base::SetProperty;
using android::hardware::configureRpcThreadpool;
using android::hardware::usb::gadget::V1_0::GadgetFunction;
using android::hardware::usb::gadget::V1_0::IUsbGadget;
using android::hardware::Return;

int main(int /*argc*/, char** /*argv*/) {
    configureRpcThreadpool(1, true /*callerWillJoin*/);

    android::sp<IUsbGadget> gadget = IUsbGadget::getService();
    Return<void> ret;