mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-06 03:41:52 +08:00
Fix Xenomai Posix setschedparam
This commit is contained in:
@@ -273,7 +273,7 @@ int main(int argc, char *argv[])
|
||||
pthread_attr_setdetachstate(&thattr, PTHREAD_CREATE_JOINABLE);
|
||||
pthread_attr_setinheritsched(&thattr, PTHREAD_EXPLICIT_SCHED);
|
||||
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);
|
||||
if (ret) {
|
||||
|
||||
Reference in New Issue
Block a user