RTEMS | Draft: cpukit/posix: Add clock support to thread queue timeouts (!618)

Gedare Bloom (@gedare) gitlab at rtems.org
Thu Aug 7 14:59:40 UTC 2025




Gedare Bloom started a new discussion on cpukit/include/rtems/score/threadqimpl.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/618#note_128376

 >    queue_context->enqueue_callout = enqueue_callout;
 >  }
 >  
 > +/**
 > + * @brief Validates a clock identifier for thread queue operations.
 > + *
 > + * @param clock_id The clock identifier to validate.
 > + *
 > + * @retval true The clock identifier is valid (CLOCK_REALTIME or CLOCK_MONOTONIC).
 > + * @retval false The clock identifier is not valid.
 > + */
 > +static inline bool _Thread_queue_Context_is_clock_id_valid(clockid_t clock_id)

This function does not seem to have anything specific to either thread queues or to thread_queue_context. Maybe it belongs elsewhere with a more generic name? Or there should be added Thread_queue / Thread_queue_Context parameters to the function, if they are expected to be necessary later?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/618#note_128376
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250807/1d4ade81/attachment.htm>


More information about the bugs mailing list