未验证 提交 99214f4f 编写于 作者: 张泊远yg 提交者: Gitee

update ipc/native/src/core/source/ipc_thread_skeleton.cpp.

Signed-off-by: N张泊远yg <zhangboyuan1@huawei.com>
Signed-off-by: N张泊远yg <zhangboyuan1@huawei.com>
上级 1e924742
......@@ -42,7 +42,6 @@ bool IPCThreadSkeleton::isThreadAvailable = true;
static constexpr HiLogLabel LABEL = { LOG_CORE, LOG_ID_IPC, "IPCThreadSkeleton" };
void IPCThreadSkeleton::TlsDestructor(void *args)
{
std::lock_guard<std::recursive_mutex> lockGuard(mutex_);
auto *current = static_cast<IPCThreadSkeleton *>(args);
auto it = current->invokers_.find(IRemoteObject::IF_PROT_BINDER);
if (it != current->invokers_.end()) {
......@@ -87,7 +86,7 @@ IPCThreadSkeleton::~IPCThreadSkeleton()
{
ZLOGE(LABEL, "IPCThreadSkeleton delete");
isThreadAvailable = false;
std::lock_guard<std::recursive_mutex> lockGuard(this->mutex_);
std::lock_guard<std::recursive_mutex> lockGuard(mutex_);
for (auto it = invokers_.begin(); it != invokers_.end();) {
delete it->second;
it = invokers_.erase(it);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册