diff options
| -rw-r--r-- | services/sensorservice/aidl/SensorManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/sensorservice/aidl/SensorManager.cpp b/services/sensorservice/aidl/SensorManager.cpp index 6d8d5741af..9b0334443b 100644 --- a/services/sensorservice/aidl/SensorManager.cpp +++ b/services/sensorservice/aidl/SensorManager.cpp @@ -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); |