1
0
Fork 0
forked from nuttx/nuttx-update

pthread: We should not directly include arch/spinlock.h as it may cause compilation errors in C++.

Instead, we should use nuttx/spinlock.h.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5 2024-04-29 10:41:17 +08:00 committed by Xiang Xiao
parent bc97e73aee
commit 444a9fbcd6
2 changed files with 1 additions and 2 deletions

View file

@ -35,7 +35,6 @@
#include <nuttx/compiler.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#if defined(CONFIG_TICKET_SPINLOCK) || defined(CONFIG_RW_SPINLOCK)
# include <nuttx/atomic.h>

View file

@ -49,7 +49,7 @@
* SP_LOCKED and SP_UNLOCKED must constants of type spinlock_t.
*/
# include <arch/spinlock.h>
# include <nuttx/spinlock.h>
#endif
/****************************************************************************