hujun260 commented on code in PR #15129:
URL: https://github.com/apache/nuttx/pull/15129#discussion_r1912971199


##########
sched/sched/sched_timerexpiration.c:
##########
@@ -100,12 +100,30 @@ static clock_t g_timer_tick;
  * that just expired.  The value zero means that no timer was active.
  */
 
-static unsigned int g_timer_interval;
+static atomic_t g_timer_interval;
 
 /****************************************************************************
  * Private Functions
  ****************************************************************************/
 
+static inline_function clock_t  get_time_tick(void)
+{
+#ifdef CONFIG_SYSTEM_TIME64
+  return atomic64_read((FAR atomic64_t *)&g_timer_tick);
+#else
+  return atomic_read((FAR atomic_t *)&g_timer_tick);
+#endif
+}
+
+static inline_function clock_t xchg_time_tick(clock_t tick)

Review Comment:
   done



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