Commit 3084ae89 authored by Cedric Roux's avatar Cedric Roux

bugfix: set max priority to trx_usrp_write_thread

parent d379bbae
...@@ -658,7 +658,12 @@ int trx_usrp_write_init(openair0_device *device){ ...@@ -658,7 +658,12 @@ int trx_usrp_write_init(openair0_device *device){
printf("end of tx write thread\n"); printf("end of tx write thread\n");
pthread_mutex_init(&write_thread->mutex_write, NULL); pthread_mutex_init(&write_thread->mutex_write, NULL);
pthread_cond_init(&write_thread->cond_write, NULL); pthread_cond_init(&write_thread->cond_write, NULL);
pthread_create(&write_thread->pthread_write,NULL,trx_usrp_write_thread,(void *)device); threadCreate(&write_thread->pthread_write,
trx_usrp_write_thread,
(void *)device,
(char*)"trx_usrp_write_thread",
-1,
OAI_PRIORITY_RT_MAX);
return(0); return(0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment