TaiJuWu commented on code in PR #10605:
URL: https://github.com/apache/nuttx/pull/10605#discussion_r1346701893


##########
sched/semaphore/spinlock.c:
##########
@@ -189,6 +224,25 @@ spinlock_t spin_trylock(FAR volatile spinlock_t *lock)
 
 spinlock_t spin_trylock_wo_note(FAR volatile spinlock_t *lock)
 {
+#if defined(CONFIG_TICKET_SPINLOCK)
+
+  if (spin_islocked(lock))
+    {
+      return SP_LOCKED;
+    }
+
+  ticket_spinlock_t old = atomic_load((ticket_spinlock_t *)lock);

Review Comment:
   I miss the problem. Thank you for your guidance.



-- 
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

Reply via email to