RTEMS | cpukit/posix Added pthread clock functions (!547)
mazen Adel (@mez3n)
gitlab at rtems.org
Fri Jul 11 22:30:05 UTC 2025
mazen Adel commented on a discussion on cpukit/posix/src/mutexclocklock.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/547#note_126396
> +
> +#include <rtems/posix/muteximpl.h>
> +
> +int pthread_mutex_clocklock(
> + pthread_mutex_t *mutex,
> + clockid_t clock_id,
> + const struct timespec *abstime
> +)
> +{
> + if ( clock_id == CLOCK_REALTIME ) {
> + return _POSIX_Mutex_Lock_support(
> + mutex,
> + abstime,
> + _Thread_queue_Add_timeout_realtime_timespec
> + );
> + } else if ( clock_id == CLOCK_MONOTONIC ) {
Done.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/547#note_126396
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/2e7589e8/attachment-0001.htm>
More information about the bugs
mailing list