Loading services/sensorservice/aidl/SensorManager.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -201,7 +201,7 @@ sp<Looper> SensorManagerAidl::getLooper() { // if thread not initialized, start thread mStopThread = false; std::thread pollThread{[&stopThread = mStopThread, looper = mLooper, javaVm = mJavaVm] { struct sched_param p = {0}; struct sched_param p = {}; p.sched_priority = 10; if (sched_setscheduler(0 /* current thread*/, SCHED_FIFO, &p) != 0) { LOG(ERROR) << "Could not use SCHED_FIFO for looper thread: " << strerror(errno); Loading Loading
services/sensorservice/aidl/SensorManager.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -201,7 +201,7 @@ sp<Looper> SensorManagerAidl::getLooper() { // if thread not initialized, start thread mStopThread = false; std::thread pollThread{[&stopThread = mStopThread, looper = mLooper, javaVm = mJavaVm] { struct sched_param p = {0}; struct sched_param p = {}; p.sched_priority = 10; if (sched_setscheduler(0 /* current thread*/, SCHED_FIFO, &p) != 0) { LOG(ERROR) << "Could not use SCHED_FIFO for looper thread: " << strerror(errno); Loading