mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
nuttx/spinlock: Define empty macro for spin_unlock
So that the same code can be used with and without spinlocks. Signed-off-by: Ville Juven <ville.juven@unikie.com> Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>
This commit is contained in:
@@ -448,6 +448,8 @@ static inline_function void spin_unlock(FAR volatile spinlock_t *lock)
|
|||||||
# else
|
# else
|
||||||
# define spin_unlock(l) do { *(l) = SP_UNLOCKED; } while (0)
|
# define spin_unlock(l) do { *(l) = SP_UNLOCKED; } while (0)
|
||||||
# endif
|
# endif
|
||||||
|
#else
|
||||||
|
# define spin_unlock(lock)
|
||||||
#endif /* CONFIG_SPINLOCK */
|
#endif /* CONFIG_SPINLOCK */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user