Commit c9fb6da1 authored by knopp's avatar knopp
Browse files

added larger stack size for UE thread in lte-softmodem.c

git-svn-id: 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 1bdf31c5
......@@ -181,6 +181,8 @@ static SEM *sync_sem; // to sync rx & tx streaming
pthread_t main_eNB_thread;
pthread_t main_ue_thread;
pthread_attr_t attr_dlsch_threads;
pthread_attr_t attr_UE_thread;
struct sched_param sched_param_dlsch;
......@@ -3527,6 +3529,9 @@ int main(int argc, char **argv) {
pthread_attr_init (&attr_dlsch_threads);
pthread_attr_init (&attr_UE_thread);
sched_param_dlsch.sched_priority = sched_get_priority_max(SCHED_FIFO); //OPENAIR_THREAD_PRIORITY;
pthread_attr_setschedparam (&attr_dlsch_threads, &sched_param_dlsch);
......@@ -3547,7 +3552,7 @@ int main(int argc, char **argv) {
#ifdef RTAI
main_ue_thread = rt_thread_create(UE_thread, NULL, 100000000);
error_code = pthread_create(&main_ue_thread, &attr_dlsch_threads, UE_thread, NULL);
error_code = pthread_create(&main_ue_thread, &attr_UE_thread, UE_thread, NULL);
if (error_code!= 0) {
LOG_D(HW,"[lte-softmodem.c] Could not allocate UE_thread, error %d\n",error_code);
Supports Markdown
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