mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +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/compiler.h>
|
||||||
#include <nuttx/irq.h>
|
#include <nuttx/irq.h>
|
||||||
|
#include <nuttx/arch.h>
|
||||||
|
|
||||||
#if defined(CONFIG_TICKET_SPINLOCK) || defined(CONFIG_RW_SPINLOCK)
|
#if defined(CONFIG_TICKET_SPINLOCK) || defined(CONFIG_RW_SPINLOCK)
|
||||||
# include <nuttx/atomic.h>
|
# include <nuttx/atomic.h>
|
||||||
|
|||||||
+1
-1
@@ -49,7 +49,7 @@
|
|||||||
* SP_LOCKED and SP_UNLOCKED must constants of type spinlock_t.
|
* SP_LOCKED and SP_UNLOCKED must constants of type spinlock_t.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
# include <nuttx/spinlock.h>
|
# include <arch/spinlock.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user