From 0210ba92dd91172579219e6aba85fd7ef33416e0 Mon Sep 17 00:00:00 2001 From: yuanbo Date: Fri, 6 Aug 2021 14:41:20 +0800 Subject: [PATCH] fix ioservice poll thread status mismatch issue Signed-off-by: yuanbo --- core/adapter/syscall/src/hdf_syscall_adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/adapter/syscall/src/hdf_syscall_adapter.c b/core/adapter/syscall/src/hdf_syscall_adapter.c index d84ea8634..d38978319 100644 --- a/core/adapter/syscall/src/hdf_syscall_adapter.c +++ b/core/adapter/syscall/src/hdf_syscall_adapter.c @@ -441,12 +441,12 @@ static int32_t HdfDevListenerThreadStart(struct HdfDevListenerThread *thread) .stackSize = 0, }; + thread->status = LISTENER_STARTED; if (OsalThreadStart(&thread->thread, &config) != HDF_SUCCESS) { HDF_LOGE("%s:OsalThreadStart failed", __func__); ret = HDF_FAILURE; break; } - thread->status = LISTENER_STARTED; return HDF_SUCCESS; } while (0); -- Gitee