Fix-Point commented on code in PR #18224:
URL: https://github.com/apache/nuttx/pull/18224#discussion_r2735621665


##########
sched/hrtimer/hrtimer.h:
##########
@@ -45,6 +45,19 @@
 
 #define HRTIMER_CANCEL_SYNC_DELAY_US CONFIG_USEC_PER_TICK
 
+/* The pending state indicates the timer belongs to the shared hrtimer queue
+ * and is waiting for the next hrtimer expiry.
+ */
+
+#define hrtimer_is_pending(hrtimer)    ((hrtimer)->func != NULL)

Review Comment:
   This commit renamed the `hrtimer_is_armed` to `hrtimer_is_pending`, which is
   more accurate in the semamtic, and simplify it.



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