Skip to content
Snippets Groups Projects
Commit 3a1f3df8 authored by Xenofon Foukas's avatar Xenofon Foukas
Browse files

Added OAI priority to send and receive thread of agent

parent 34db5f20
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,16 @@ link_manager_t *create_link_manager(
if (pthread_attr_init(&attr))
goto error;
// Make the async interface threads real-time
//#ifndef LOWLATENCY
struct sched_param sched_param_recv_thread;
struct sched_param sched_param_send_thread;
sched_param_recv_thread.sched_priority = sched_get_priority_max(SCHED_RR) - 1;
pthread_attr_setschedparam(&attr, &sched_param_recv_thread);
pthread_attr_setschedpolicy(&attr, SCHED_RR);
//#endif
if (pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED))
goto error;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment