Fix Xenomai Posix setschedparam
This commit is contained in:
parent
64adc0ce16
commit
db0d120e2e
|
|
@ -273,7 +273,7 @@ int main(int argc, char *argv[])
|
||||||
pthread_attr_setdetachstate(&thattr, PTHREAD_CREATE_JOINABLE);
|
pthread_attr_setdetachstate(&thattr, PTHREAD_CREATE_JOINABLE);
|
||||||
pthread_attr_setinheritsched(&thattr, PTHREAD_EXPLICIT_SCHED);
|
pthread_attr_setinheritsched(&thattr, PTHREAD_EXPLICIT_SCHED);
|
||||||
pthread_attr_setschedpolicy(&thattr, SCHED_FIFO);
|
pthread_attr_setschedpolicy(&thattr, SCHED_FIFO);
|
||||||
pthread_setschedparam(cyclic_thread, SCHED_FIFO, ¶m);
|
pthread_attr_setschedparam(&thattr, ¶m);
|
||||||
|
|
||||||
ret = pthread_create(&cyclic_thread, &thattr, &my_thread, NULL);
|
ret = pthread_create(&cyclic_thread, &thattr, &my_thread, NULL);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue