TaiJuWu commented on code in PR #10776: URL: https://github.com/apache/nuttx/pull/10776#discussion_r1348747696
########## sched/semaphore/spinlock.c: ########## @@ -32,6 +32,11 @@ #include <nuttx/sched_note.h> #include <arch/irq.h> +#ifdef CONFIG_RW_SPINLOCK +# include <stdatomic.h> +const static rwlock_t zero = SP_UNLOCKED; Review Comment: write_lock need to check rw_lock is equal zero or not and decide that can writer get this lock. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org