mazen Adel commented on a discussion on cpukit/include/rtems/posix/condimpl.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/547#note_126254 > * timed wait version of condition variable wait routines. > */ > int _POSIX_Condition_variables_Wait_support( > - pthread_cond_t *cond, > - pthread_mutex_t *mutex, > - const struct timespec *abstime > + pthread_cond_t *cond, > + pthread_mutex_t *mutex, > + const struct timespec *abstime, > + clockid_t *clockid I used a pointer because I need to distinguish between two cases: clockid != NULL: Use the specific clock the caller wants (for pthread_cond_clockwait()) clockid == NULL: Use the condition variable's default clock (for pthread_cond_timedwait()) If we want to pass it by value can we pass a -1 instead of null ? -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/547#note_126254 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list bugs@rtems.org http://lists.rtems.org/mailman/listinfo/bugs