Skip to content
Snippets Groups Projects
Commit dec525cb authored by Robert Schmidt's avatar Robert Schmidt Committed by Kumar, Sunil Dr (Comp Sci & Elec Eng)
Browse files

Add mutex for protecting 4G preprocessor

parent 4c91e98b
No related branches found
No related tags found
No related merge requests found
...@@ -573,7 +573,9 @@ schedule_ue_spec(module_id_t module_idP, ...@@ -573,7 +573,9 @@ schedule_ue_spec(module_id_t module_idP,
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_DLSCH_PREPROCESSOR, VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_DLSCH_PREPROCESSOR,
VCD_FUNCTION_IN); VCD_FUNCTION_IN);
start_meas(&eNB->schedule_dlsch_preprocessor); start_meas(&eNB->schedule_dlsch_preprocessor);
pthread_mutex_lock(&eNB->pp_dl_mutex);
eNB->pre_processor_dl.dl(module_idP, CC_id, frameP, subframeP); eNB->pre_processor_dl.dl(module_idP, CC_id, frameP, subframeP);
pthread_mutex_unlock(&eNB->pp_dl_mutex);
stop_meas(&eNB->schedule_dlsch_preprocessor); stop_meas(&eNB->schedule_dlsch_preprocessor);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_DLSCH_PREPROCESSOR, VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_DLSCH_PREPROCESSOR,
VCD_FUNCTION_OUT); VCD_FUNCTION_OUT);
......
...@@ -1442,6 +1442,7 @@ typedef struct eNB_MAC_INST_s { ...@@ -1442,6 +1442,7 @@ typedef struct eNB_MAC_INST_s {
/// are called by ULSCH/DLSCH, respectively. Pro-processor implementation can /// are called by ULSCH/DLSCH, respectively. Pro-processor implementation can
/// encapsulate slicing. /// encapsulate slicing.
pp_impl_param_t pre_processor_dl; pp_impl_param_t pre_processor_dl;
pthread_mutex_t pp_dl_mutex;
pp_impl_param_t pre_processor_ul; pp_impl_param_t pre_processor_ul;
int32_t puSch10xSnr; int32_t puSch10xSnr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment