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.

Signed-off-by: chao an <[email protected]>
  • Loading branch information
anchao committed Oct 13, 2024
1 parent 1ff49f0 commit ab951a9
Showing 1 changed file with 1 addition and 0 deletions.
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

0 comments on commit ab951a9

Please sign in to comment.