Skip to content

Commit a3ce207

Browse files
frankistcodebot
authored andcommitted
cu-up: make execute_on blocking calls depend on timers
1 parent 9ddd165 commit a3ce207

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/cu_up/ue_manager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
#include "ue_manager.h"
12-
#include "srsran/support/async/execute_on.h"
12+
#include "srsran/support/async/execute_on_blocking.h"
1313

1414
using namespace srsran;
1515
using namespace srs_cu_up;
@@ -115,15 +115,15 @@ async_task<void> ue_manager::remove_ue(ue_index_t ue_index)
115115
CORO_BEGIN(ctx);
116116

117117
// Dispatch execution context switch.
118-
CORO_AWAIT(execute_on_blocking(ue_ctxt->ue_exec_mapper->ctrl_executor()));
118+
CORO_AWAIT(execute_on_blocking(ue_ctxt->ue_exec_mapper->ctrl_executor(), timers));
119119

120120
// Stop and delete
121121
CORO_AWAIT(ue_ctxt->stop());
122122
ue_ctxt.reset();
123123
logger.info("ue={}: UE removed", ue_index);
124124

125125
// Continuation in the original executor.
126-
CORO_AWAIT(execute_on_blocking(ctrl_executor));
126+
CORO_AWAIT(execute_on_blocking(ctrl_executor, timers));
127127

128128
CORO_RETURN();
129129
});

lib/du/du_high/du_manager/procedures/du_ue_ric_configuration_procedure.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
#include "du_ue_ric_configuration_procedure.h"
12-
#include "srsran/support/async/execute_on.h"
12+
#include "srsran/support/async/execute_on_blocking.h"
1313

1414
using namespace srsran;
1515
using namespace srs_du;
@@ -26,7 +26,7 @@ void du_ue_ric_configuration_procedure::operator()(coro_context<async_task<du_ma
2626
CORO_BEGIN(ctx);
2727

2828
// Change execution context to DU manager.
29-
CORO_AWAIT(execute_on_blocking(du_params.services.du_mng_exec));
29+
CORO_AWAIT(execute_on_blocking(du_params.services.du_mng_exec, du_params.services.timers));
3030

3131
// Run config task inside the UE task loop and await for its completion.
3232
CORO_AWAIT(dispatch_ue_config_task());

0 commit comments

Comments
 (0)