Skip to content

Commit

Permalink
Revert "pthread: We should not directly include arch/spinlock.h as it…
Browse files Browse the repository at this point in the history
… may cause compilation errors in C++."

This reverts commit 444a9fb.
  • Loading branch information
anchao committed Oct 14, 2024
1 parent 04722f8 commit 496e2ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/nuttx/spinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion include/pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* SP_LOCKED and SP_UNLOCKED must constants of type spinlock_t.
*/

# include <nuttx/spinlock.h>
# include <arch/spinlock.h>
#endif

/****************************************************************************
Expand Down

0 comments on commit 496e2ff

Please sign in to comment.