RTEMS | cpukit/posix Added pthread clock functions (!547)
mazen Adel (@mez3n)
gitlab at rtems.org
Fri Jul 11 22:33:58 UTC 2025
mazen Adel commented on a discussion on cpukit/posix/src/condtimedwait.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/547#note_126398
> if ( abstime == NULL ) {
> return EINVAL; /* not specified */
> }
> - return _POSIX_Condition_variables_Wait_support(
> - cond,
> - mutex,
> - abstime
> - );
> + return _POSIX_Condition_variables_Wait_support( cond, mutex, abstime, NULL );
I had to add
`the_cond = _POSIX_Condition_variables_Get( cond );`
`POSIX_CONDITION_VARIABLES_VALIDATE_OBJECT( the_cond, flags );`
`clock_id = _POSIX_Condition_variables_Get_clock( flags );`
which is redundant because we have to call it again in `_POSIX_Condition_variables_Wait_support()` is there a better solution ?
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/547#note_126398
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/09b161ad/attachment-0001.htm>
More information about the bugs
mailing list