anchao commented on code in PR #21342:
URL: https://github.com/apache/nuttx/pull/21342#discussion_r4442465676


##########
include/nuttx/spinlock.h:
##########
@@ -994,11 +1089,14 @@ static inline_function void read_lock(FAR volatile 
rwlock_t *lock)
  *
  ****************************************************************************/
 
-static inline_function bool read_trylock(FAR volatile rwlock_t *lock)
+#  ifdef CONFIG_SPINLOCK_INLINE
+SPINLOCK_INLINE bool read_trylock(FAR volatile rwlock_t *lock)
 {
-  while (true)
+  bool ret;

Review Comment:
   ```suggestion
   
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to