mirror of
https://github.com/openharmony/communication_ipc_lite.git
synced 2026-06-30 22:17:55 -04:00
Modify the endogenous issue
Signed-off-by: zhou-liting125 <zhouliting5@huawei.com>
This commit is contained in:
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
+1
-1
@@ -772,7 +772,7 @@ static void TimeoutHandler(int signo, void *arg)
|
||||
.handle = g_ipcCallbackCb.handleId,
|
||||
.token = node->token
|
||||
};
|
||||
UnregisterIpcCallback(sid);
|
||||
(void)UnregisterIpcCallback(sid);
|
||||
}
|
||||
|
||||
int32_t StartIpcCbTimer(uint32_t mode, uint32_t timeoutMs, AnonymousApi* node, timer_t* timerId)
|
||||
|
||||
Executable → Regular
@@ -635,6 +635,9 @@ int32_t StartLoop(const IpcContext* context, IpcMsgHandler func, void* arg)
|
||||
|
||||
static void BinderThreadLoop(const IpcContext* context, IpcMsgHandler func, void* arg)
|
||||
{
|
||||
if (context == NULL || arg == NULL) {
|
||||
return;
|
||||
}
|
||||
struct binder_write_read bwr = {0};
|
||||
uint32_t readbuf[READ_BUFFER_SIZE] = {0};
|
||||
struct FuncPair funcPair = {0};
|
||||
@@ -984,7 +987,9 @@ static void* CallbackDispatch(void* arg)
|
||||
return (void*)(intptr_t)LITEIPC_EINTNL;
|
||||
}
|
||||
g_ipcCallbackCb.threadWorking = true;
|
||||
StartLoop(ipcContext, (IpcMsgHandler)TryCallBack, NULL);
|
||||
if (StartLoop(ipcContext, (IpcMsgHandler)TryCallBack, NULL) != LITEIPC_OK) {
|
||||
return (void*)(intptr_t)LITEIPC_EINTNL;
|
||||
}
|
||||
return (void*)(intptr_t)LITEIPC_OK;
|
||||
}
|
||||
|
||||
|
||||
Executable → Regular
Executable → Regular
Executable → Regular
Reference in New Issue
Block a user