mirror of
https://github.com/apache/nuttx.git
synced 2026-08-16 01:43:15 +00:00
nuttx/spinlock: Define empty macros for spin_lock/unlock
So that the same code can be used with and without spinlocks. Signed-off-by: Ville Juven <ville.juven@unikie.com>
This commit is contained in:
parent
60c9c66839
commit
ea15bb9adf
1 changed files with 2 additions and 0 deletions
|
|
@ -448,6 +448,8 @@ static inline_function void spin_unlock(FAR volatile spinlock_t *lock)
|
|||
# else
|
||||
# define spin_unlock(l) do { *(l) = SP_UNLOCKED; } while (0)
|
||||
# endif
|
||||
#else
|
||||
# define spin_unlock(lock)
|
||||
#endif /* CONFIG_SPINLOCK */
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue