mirror of
https://gitee.com/openharmony/telephony_core_service
synced 2024-11-23 08:00:07 +00:00
fix multi thread use queue.
Signed-off-by: dingxiaochen <dingxiaochen@huawei.com>
This commit is contained in:
parent
c2f6662f5a
commit
071511fe1e
@ -45,6 +45,7 @@ TelEventQueue::~TelEventQueue()
|
||||
TELEPHONY_LOGD("%{public}s need to wait", name_.c_str());
|
||||
queue_->wait(curTask_);
|
||||
curTask_ = ffrt::task_handle();
|
||||
std::lock_guard<std::mutex> lock(taskCtx_);
|
||||
queue_ = nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user