Commit 6d84da68 authored by khadraou's avatar khadraou

bugfix

parent 04e37e9a
......@@ -1628,6 +1628,11 @@ static void* ru_thread( void* param ) {
LOG_I(PHY,"Starting RU %d (%s,%s),\n",ru->idx,eNB_functions[ru->function],eNB_timing[ru->if_timing]);
while (!oai_exit) {
LOG_I(PHY,"Waiting for thread control. RU %d,\n",ru->idx;
// wait to be woken up
if (wait_on_condition(&ru->proc.mutex_ru,&ru->proc.cond_ru_thread,&ru->proc.instance_cnt_ru,"ru_thread")<0) break;
if (ru->if_south == LOCAL_RF) { // configure RF parameters only
fill_rf_config(ru,ru->rf_config_file);
......@@ -1650,14 +1655,6 @@ static void* ru_thread( void* param ) {
wait_sync("ru_thread");
while (!oai_exit) {
// wait to be woken up
if (wait_on_condition(&ru->proc.mutex_ru,&ru->proc.cond_ru_thread,&ru->proc.instance_cnt_ru,"ru_thread")<0) break;
// Start RF device if any
if (ru->start_rf) {
if (ru->start_rf(ru) != 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