Skip to content

Race condition for ScheduleDestroy events when reseting the environment #114

@Kakadus

Description

@Kakadus

Resetting a running environment sends a close_command to the simulation. Then, the ns3 simulator is destroyed, and all ScheduleDestroy events should be handled:

Simulator::Stop();
Simulator::Destroy();

In parallel, the experiment is runned again, which kills the old environment and interrupts the ScheduleDestroy events.

def run(self, setting=None, show_output=False):
self.kill()

Instead, I expected that all events scheduled with ScheduleDestroy are executed when I reset the environment. It would be a nice feature to execute these events, when I close the environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions