summaryrefslogtreecommitdiff
path: root/src/systemc/core/sensitivity.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemc/core/sensitivity.cc')
-rw-r--r--src/systemc/core/sensitivity.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/systemc/core/sensitivity.cc b/src/systemc/core/sensitivity.cc
index 740090cd9..2bd0b5fcb 100644
--- a/src/systemc/core/sensitivity.cc
+++ b/src/systemc/core/sensitivity.cc
@@ -31,6 +31,7 @@
#include "systemc/core/event.hh"
#include "systemc/core/port.hh"
+#include "systemc/core/process.hh"
#include "systemc/core/scheduler.hh"
#include "systemc/ext/core/sc_export.hh"
#include "systemc/ext/core/sc_interface.hh"
@@ -57,6 +58,12 @@ Sensitivity::notify(Event *e)
return notifyWork(e);
}
+bool
+Sensitivity::ofMethod()
+{
+ return process->procKind() == sc_core::SC_METHOD_PROC_;
+}
+
/*
* Dynamic vs. static sensitivity.