diff options
| author | 2018-08-06 13:46:14 -0700 | |
|---|---|---|
| committer | 2018-08-06 13:46:14 -0700 | |
| commit | 212d9f76ba098041369090ccb11d39f06cb3e00f (patch) | |
| tree | 8df9955e7d4dcd4d55dc8ac3fccd88b7e6fc2b0a | |
| parent | 906b37ec09c9f3075e92682d0929bb0fe104139d (diff) | |
| parent | 56104e6fb8e19dda719e3095f5bbe8e047a6a69b (diff) | |
Merge "Fix the system_error while calling thread::join() in NativeCallbackThread."
am: 56104e6fb8
Change-Id: Idc11c245841a45882ddb90849c35e98d678947cc
| -rw-r--r-- | services/core/jni/BroadcastRadio/NativeCallbackThread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/jni/BroadcastRadio/NativeCallbackThread.cpp b/services/core/jni/BroadcastRadio/NativeCallbackThread.cpp index 81d46f39d84a..777d344e7a09 100644 --- a/services/core/jni/BroadcastRadio/NativeCallbackThread.cpp +++ b/services/core/jni/BroadcastRadio/NativeCallbackThread.cpp @@ -106,7 +106,7 @@ void NativeCallbackThread::stop() { 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 ALOGD("About to stop native callback thread %p", this); mThread.detach(); |