summaryrefslogtreecommitdiff
path: root/src/systemc/core/scheduler.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemc/core/scheduler.hh')
-rw-r--r--src/systemc/core/scheduler.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/systemc/core/scheduler.hh b/src/systemc/core/scheduler.hh
index 2da8da470..f55ff1f83 100644
--- a/src/systemc/core/scheduler.hh
+++ b/src/systemc/core/scheduler.hh
@@ -182,6 +182,14 @@ class Scheduler
// Put a process on the ready list.
void ready(Process *p);
+ // Mark a process as ready if init is finished, or put it on the list of
+ // processes to be initialized.
+ void resume(Process *p);
+
+ // Remove a process from the ready/init list if it was on one of them, and
+ // return if it was.
+ bool suspend(Process *p);
+
// Schedule an update for a given channel.
void requestUpdate(Channel *c);