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:
Ville Juven
2025-05-15 13:42:04 +03:00
committed by Xiang Xiao
parent 2d2defb8a0
commit 840ae60b60
+2
View File
@@ -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 */
/****************************************************************************