Skip to content

Add simulation event suspend/resume support using kernel API#1099

Open
levy wants to merge 1 commit intomasterfrom
topic/suspend-resume
Open

Add simulation event suspend/resume support using kernel API#1099
levy wants to merge 1 commit intomasterfrom
topic/suspend-resume

Conversation

@levy
Copy link
Copy Markdown
Contributor

@levy levy commented Apr 2, 2026

This PR is related to https://github.com/omnetpp/omnetpp-dev/pull/1

New classes:

  • SimulationContinuation: suspend/resume event execution using the kernel's suspendEvent()/resumeEvent() API
  • SimulationTask: structured task with child spawning and joining, built on SimulationContinuation
  • FunctionalEvent: schedule a std::function as a simulation event

Examples in examples/coroutine/:

  • SimulationContinuationExample: suspend/resume with timed sleep
  • SimulationTaskExample: parent task spawning and joining children
  • FunctionalEventExample: scheduling functional events

New classes:
 - SimulationContinuation: suspend/resume event execution using
   the kernel's suspendEvent()/resumeEvent() API
 - SimulationTask: structured task with child spawning and joining,
   built on SimulationContinuation
 - FunctionalEvent: schedule a std::function as a simulation event

Examples in examples/coroutine/:
 - SimulationContinuationExample: suspend/resume with timed sleep
 - SimulationTaskExample: parent task spawning and joining children
 - FunctionalEventExample: scheduling functional events
@levy levy self-assigned this Apr 2, 2026
@levy levy added the Feature label Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant