Introduce no-thread mode in ITTI
Introduce a --no-itti-threads command line option to disable threading in ITTI, and call message handlers in the current thread. This is being introduced in order to increase repeatability when testing the nrUE with the IQPlayer. Without this feature, runs with the IQPlayer will end up differently, depending on the timing of ITTI threads, mostly when sending messages to RRC and NAS.
This commit is contained in:
committed by
Robert Schmidt
parent
724c8c014c
commit
a198239084
@@ -197,7 +197,8 @@ int create_tasks_nrue(uint32_t ue_nb) {
|
||||
|
||||
if (ue_nb > 0) {
|
||||
LOG_I(NR_RRC,"create TASK_RRC_NRUE \n");
|
||||
if (itti_create_task (TASK_RRC_NRUE, rrc_nrue_task, NULL) < 0) {
|
||||
const ittiTask_parms_t parmsRRC = {NULL, rrc_nrue};
|
||||
if (itti_create_task(TASK_RRC_NRUE, rrc_nrue_task, &parmsRRC) < 0) {
|
||||
LOG_E(NR_RRC, "Create task for RRC UE failed\n");
|
||||
return -1;
|
||||
}
|
||||
@@ -208,7 +209,8 @@ int create_tasks_nrue(uint32_t ue_nb) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
if (itti_create_task (TASK_NAS_NRUE, nas_nrue_task, NULL) < 0) {
|
||||
const ittiTask_parms_t parmsNAS = {NULL, nas_nrue};
|
||||
if (itti_create_task(TASK_NAS_NRUE, nas_nrue_task, &parmsNAS) < 0) {
|
||||
LOG_E(NR_RRC, "Create task for NAS UE failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user