Skip to content

Commit a6e2a2e

Browse files
robertfalkenbergcodebot
authored andcommitted
srscu: add time source to tick timers.
1 parent 34ebd2b commit a6e2a2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/cu/cu.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "srsran/support/event_tracing.h"
2626
#include "srsran/support/io/io_broker.h"
2727
#include "srsran/support/io/io_broker_factory.h"
28+
#include "srsran/support/io/io_timer_source.h"
2829
#include "srsran/support/signal_handler.h"
2930
#include "srsran/support/sysinfo.h"
3031
#include "srsran/support/timers.h"
@@ -284,6 +285,9 @@ int main(int argc, char** argv)
284285
timer_manager app_timers{256};
285286
timer_manager* cu_timers = &app_timers;
286287

288+
// Create time source that ticks the timers
289+
io_timer_source time_source{app_timers, *epoll_broker, std::chrono::milliseconds{1}};
290+
287291
// Set up the JSON log channel used by metrics.
288292
// TODO metrics. Do we have any CU-CP or CU-UP JSON metrics?
289293

0 commit comments

Comments
 (0)