anchao commented on PR #15705: URL: https://github.com/apache/nuttx/pull/15705#issuecomment-2623699281
> Ok, could you give me an example, when can you use spin_lock API? the interrupt can be happened without your control, which mean spin_lock CAN'T BE CALLED in any thread context. There are also some places where more fine-grained control can be used, such as ``` irq_save ... if (....) spin_lock if (spin_is_locked) spin_unlock irq_restore ``` -- 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