Commit 653506c2 authored by Guy De Souza's avatar Guy De Souza

NR feptx thread

parent d1f264cd
...@@ -259,6 +259,20 @@ void ru_fep_full_2thread(RU_t *ru) { ...@@ -259,6 +259,20 @@ void ru_fep_full_2thread(RU_t *ru) {
stop_meas(&ru->ofdm_demod_stats); stop_meas(&ru->ofdm_demod_stats);
}*/ }*/
void nr_init_feptx_thread(RU_t *ru,pthread_attr_t *attr_feptx) {
RU_proc_t *proc = &ru->proc;
proc->instance_cnt_feptx = -1;
pthread_mutex_init( &proc->mutex_feptx, NULL);
pthread_cond_init( &proc->cond_feptx, NULL);
pthread_create(&proc->pthread_feptx, attr_feptx, nr_feptx_thread, (void*)ru);
}
void nr_feptx_ofdm(RU_t *ru) { void nr_feptx_ofdm(RU_t *ru) {
......
...@@ -1591,7 +1591,7 @@ extern void nr_feptx_ofdm(RU_t *ru); ...@@ -1591,7 +1591,7 @@ extern void nr_feptx_ofdm(RU_t *ru);
extern void nr_feptx_ofdm_2thread(RU_t *ru); extern void nr_feptx_ofdm_2thread(RU_t *ru);
extern void feptx_prec(RU_t *ru); extern void feptx_prec(RU_t *ru);
extern void init_fep_thread(RU_t *ru,pthread_attr_t *attr); extern void init_fep_thread(RU_t *ru,pthread_attr_t *attr);
extern void init_feptx_thread(RU_t *ru,pthread_attr_t *attr); extern void init_nr_feptx_thread(RU_t *ru,pthread_attr_t *attr);
void init_RU_proc(RU_t *ru) { void init_RU_proc(RU_t *ru) {
...@@ -1672,7 +1672,7 @@ void init_RU_proc(RU_t *ru) { ...@@ -1672,7 +1672,7 @@ void init_RU_proc(RU_t *ru) {
if (get_nprocs()>=2) { if (get_nprocs()>=2) {
if (ru->feprx) init_fep_thread(ru,NULL); if (ru->feprx) init_fep_thread(ru,NULL);
if (ru->feptx_ofdm) init_feptx_thread(ru,NULL); if (ru->feptx_ofdm) nr_init_feptx_thread(ru,NULL);
} }
if (opp_enabled == 1) pthread_create(&ru->ru_stats_thread,NULL,ru_stats_thread,(void*)ru); if (opp_enabled == 1) pthread_create(&ru->ru_stats_thread,NULL,ru_stats_thread,(void*)ru);
......
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