mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-25 00:37:18 +00:00
[ctime] fixup of data racing (#8187)
Signed-off-by: Shell <smokewood@qq.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user