提交 baa0a2a3 编写于 作者: W wanghaoxu

add log to fix ipc problem and fix ipc work thread name

Signed-off-by: Nwanghaoxu <wanghaoxu1@huawei.com>
上级 d36291b6
......@@ -85,10 +85,10 @@ std::string IPCWorkThreadPool::MakeThreadName(int proto)
int sequence = threadSequence_.fetch_add(1, std::memory_order_relaxed);
if (proto == IRemoteObject::IF_PROT_DATABUS) {
std::string threadName = "DRPC";
return std::to_string(sequence) + threadName;
return threadName + "_" + std::to_string(sequence);
} else {
std::string threadName = "IPC";
return std::to_string(sequence) + threadName;
return threadName + "_" + std::to_string(sequence);
}
}
......
......@@ -69,7 +69,6 @@ bool BinderInvoker::AcquireHandle(int32_t handle)
if (handle != 0) {
(void)PingService(handle);
}
ZLOGD(LABEL, "Acquire Handle %{public}d", handle);
return true;
}
......@@ -122,7 +121,9 @@ int BinderInvoker::SendRequest(int handle, uint32_t code, MessageParcel &data, M
HitraceInvoker::TraceClientReceieve(handle, code, flags, traceId, childId);
// restore Parcel data
newData.RewindWrite(oldWritePosition);
ZLOGD(LABEL, "%{public}s: handle=%{public}d result = %{public}d", __func__, handle, error);
if (error != ERR_NONE) {
ZLOGE(LABEL, "%{public}s: handle=%{public}d result = %{public}d", __func__, handle, error);
}
return error;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册