mirror of
https://github.com/apache/nuttx.git
synced 2025-12-12 13:55:18 +08:00
Revert "pthread: We should not directly include arch/spinlock.h as it may cause compilation errors in C++."
This reverts commit 444a9fbcd6.
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
|
||||
#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>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
* SP_LOCKED and SP_UNLOCKED must constants of type spinlock_t.
|
||||
*/
|
||||
|
||||
# include <nuttx/spinlock.h>
|
||||
# include <arch/spinlock.h>
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user