mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 17:18:24 +00:00
feat: rtatomic: lockless single linked list
Signed-off-by: Shell <smokewood@qq.com>
This commit is contained in:
@@ -132,6 +132,15 @@ struct rt_slist_node
|
||||
};
|
||||
typedef struct rt_slist_node rt_slist_t; /**< Type for single list. */
|
||||
|
||||
/**
|
||||
* Lock-less Single List structure
|
||||
*/
|
||||
struct rt_lockless_slist_node
|
||||
{
|
||||
rt_atomic_t next; /**< point to next node. */
|
||||
};
|
||||
typedef struct rt_lockless_slist_node rt_ll_slist_t; /**< Type for lock-les single list. */
|
||||
|
||||
/**
|
||||
* Spinlock
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user