Re: RTEMS | Draft: posix: Add mq_ispriority to mq_attr for per‑queue discipline selection (!1084)
Gedare Bloom (@gedare)
gitlab at rtems.org
Tue Mar 3 00:43:06 UTC 2026
Gedare Bloom started a new discussion on testsuites/psxtests/psxmsgq_prio_wakeup/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1084#note_144117
> + printf( "mq_open failed: %s\n", strerror( errno ) );
> + goto cleanup_sems;
> + }
> +
> + /* 3. Create low priority thread 1 (id=1) */
> + pthread_attr_init( &pattr );
> + pthread_attr_setinheritsched( &pattr, PTHREAD_EXPLICIT_SCHED );
> + pthread_attr_setschedpolicy( &pattr, SCHED_FIFO );
> + sparam.sched_priority = low_prio;
> + pthread_attr_setschedparam( &pattr, &sparam );
> + rc = pthread_create( &tid1, &pattr, receive_thread, &id1 );
> + if ( rc != 0 ) {
> + printf( "Failed to create thread 1: %s\n", strerror( rc ) );
> + goto cleanup;
> + }
> + usleep( 10000 );
do we need all these `usleep`? they make the test run longer.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1084#note_144117
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/20260303/8bde460b/attachment-0001.htm>
More information about the bugs
mailing list