NR feptx thread
This commit is contained in:
@@ -259,6 +259,20 @@ void ru_fep_full_2thread(RU_t *ru) {
|
||||
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) {
|
||||
|
||||
|
||||
@@ -1591,7 +1591,7 @@ extern void nr_feptx_ofdm(RU_t *ru);
|
||||
extern void nr_feptx_ofdm_2thread(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_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) {
|
||||
|
||||
@@ -1672,7 +1672,7 @@ void init_RU_proc(RU_t *ru) {
|
||||
|
||||
if (get_nprocs()>=2) {
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user