Loading services/core/jni/BroadcastRadio/NativeCallbackThread.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -106,7 +106,7 @@ void NativeCallbackThread::stop() { mQueueCond.notify_one(); mQueueCond.notify_one(); } } if (mThread.get_id() == std::thread::id()) { if (mThread.get_id() == std::this_thread::get_id()) { // you can't self-join a thread, but it's ok when calling from our sub-task // you can't self-join a thread, but it's ok when calling from our sub-task ALOGD("About to stop native callback thread %p", this); ALOGD("About to stop native callback thread %p", this); mThread.detach(); mThread.detach(); Loading Loading
services/core/jni/BroadcastRadio/NativeCallbackThread.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -106,7 +106,7 @@ void NativeCallbackThread::stop() { mQueueCond.notify_one(); mQueueCond.notify_one(); } } if (mThread.get_id() == std::thread::id()) { if (mThread.get_id() == std::this_thread::get_id()) { // you can't self-join a thread, but it's ok when calling from our sub-task // you can't self-join a thread, but it's ok when calling from our sub-task ALOGD("About to stop native callback thread %p", this); ALOGD("About to stop native callback thread %p", this); mThread.detach(); mThread.detach(); Loading