rt-thread-official/examples
Shell e25fc8b511
[libcpu/arm64] add C11 atomic ticket spinlock (#8882)
* [libcpu/arm64] add C11 atomic ticket spinlock

Replace the former implementation of flag-based spinlock which is unfair

Besides, C11 atomic implementation is more readable (it's C anyway),
and maintainable. Cause toolchain can use their builtin optimization and
tune for different micro-architectures. For example armv8.5 introduces a
better instruction. The compiler can help with that when it knows your
target platform in support of it.

Signed-off-by: Shell <smokewood@qq.com>

* fixup: RT_CPUS_NR

---------

Signed-off-by: Shell <smokewood@qq.com>
2024-05-16 15:45:12 +08:00
..
file [update] move dfs_posix.h to legacy/dfs/dfs_posix.h 2022-01-14 23:09:32 +08:00
libc [HUST CSE] add forced type conversion when using 'realloc','malloc','calloc' for better readability 2023-04-28 15:55:28 +01:00
network [examples][tcpserver]打印错误值errno 2023-12-28 15:55:14 +08:00
pm [example] replace RT_IPC_FLAG_FIFO with RT_IPC_FLAG_PRIO 2021-07-18 12:52:04 +08:00
rt-link [errno code][-RT_ERROR] fix that use RT_ERROR without - 2023-03-20 00:06:16 -04:00
test [HUST CSE]Fix if condition statement not closed (#7353) 2023-04-23 17:40:42 -04:00
ulog [example] 格式化整理 2021-03-07 08:34:04 +08:00
utest [libcpu/arm64] add C11 atomic ticket spinlock (#8882) 2024-05-16 15:45:12 +08:00
var_export [add][examples][var_export]add sample code for the var_export component 2021-09-02 20:20:29 +08:00
ymodem [update] move dfs_posix.h to legacy/dfs/dfs_posix.h 2022-01-14 23:09:32 +08:00