summaryrefslogtreecommitdiff
path: root/components/lwp
diff options
context:
space:
mode:
authorShell <[email protected]>2023-10-26 13:56:27 +0800
committerGitHub <[email protected]>2023-10-26 13:56:27 +0800
commiteafb04e01126a4da572ec5551427adeb08dcb2bb (patch)
tree782c636b7224053468d82748779e1c9ff44157e7 /components/lwp
parent01672f8627e3b341e7eb30adef42660bce25b1c3 (diff)
[ctime] fixup of data racing (#8187)
Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'components/lwp')
-rw-r--r--components/lwp/lwp_ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/lwp/lwp_ipc.c b/components/lwp/lwp_ipc.c
index 0210a2f399..e01c909fdd 100644
--- a/components/lwp/lwp_ipc.c
+++ b/components/lwp/lwp_ipc.c
@@ -55,7 +55,7 @@ static rt_ipc_msg_t _ipc_msg_free_list = (rt_ipc_msg_t)RT_NULL; /* released chai
static int rt_ipc_msg_used = 0; /* first unallocated entry */
static struct rt_ipc_msg ipc_msg_pool[RT_CH_MSG_MAX_NR]; /* initial message array */
-static rt_spinlock_t ipc_big_lock;
+static struct rt_spinlock ipc_big_lock;
#define ipc_list_lock ipc_big_lock
#define ipc_ch_lock ipc_big_lock