RTEMS | cpukit/posix Added pthread clock functions (!547)

mazen Adel (@mez3n) gitlab at rtems.org
Fri Jul 11 23:15:04 UTC 2025




mazen Adel commented on a discussion on cpukit/posix/src/condclockwait.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/547#note_126403

 > +#endif
 > +
 > +#include <rtems/posix/condimpl.h>
 > +
 > +int pthread_cond_clockwait(
 > +  pthread_cond_t        *cond,
 > +  pthread_mutex_t       *mutex,
 > +  clockid_t              clock_id,
 > +  const struct timespec *abstime
 > +)
 > +{
 > +  if ( abstime == NULL ) {
 > +    return EINVAL;
 > +  }
 > +  if ( clock_id != CLOCK_MONOTONIC && clock_id != CLOCK_REALTIME ) {
 > +    return EINVAL;

I believe I should add this in this patch since it heavily depends on how clock_id is passed to `_POSIX_Condition_variables_Wait_support`.

I can submit it in a different patch if preferred, but it would need to be applied after this patch is merged since it builds upon the clock_id parameter changes.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/547#note_126403
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/20250711/9f8455cb/attachment-0001.htm>


More information about the bugs mailing list