Skip to content

RealTimeScheduler and stale events #1018

Open
@eseglo

Description

@eseglo

Hi,
When using inet::RealTimeScheduler for emulation, for instance, with Simu5G, stale events occur frequently (some modules are dynamically deleted before the event is processed).
But the code in takeNextEvent() does not take it into account.

A possible fix is to do something similar to what is done in omnet::cSequentialScheduler::takeNextEvent(): just use a loop and delete stale events before returning them.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions