diff options
author | Gabe Black <gabeblack@google.com> | 2018-06-15 22:05:53 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-08-28 21:20:26 +0000 |
commit | 48a16049412ee5d99bbff650248d1d990bb38ada (patch) | |
tree | 001ddb7e70517cc23838bf68293ffe549c211fcb /src/systemc/ext/core | |
parent | 61cf4339466da51c76c858245bd1841fd00e8405 (diff) | |
download | gem5-48a16049412ee5d99bbff650248d1d990bb38ada.tar.xz |
systemc: Add the nonstandard timed_out function.
Change-Id: If14a5f98f03448c712827b7f92d2a36992541518
Reviewed-on: https://gem5-review.googlesource.com/11279
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/ext/core')
-rw-r--r-- | src/systemc/ext/core/sc_module.hh | 6 | ||||
-rw-r--r-- | src/systemc/ext/core/sc_prim.hh | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/systemc/ext/core/sc_module.hh b/src/systemc/ext/core/sc_module.hh index ffb1a3ccb..78919613e 100644 --- a/src/systemc/ext/core/sc_module.hh +++ b/src/systemc/ext/core/sc_module.hh @@ -183,6 +183,9 @@ class sc_module : public sc_object void next_trigger(const sc_time &, const sc_event_and_list &); void next_trigger(double, sc_time_unit, const sc_event_and_list &); + // Nonstandard + bool timed_out(); + void wait(); void wait(int); void wait(const sc_event &); @@ -242,6 +245,9 @@ void wait(double, sc_time_unit, const sc_event_or_list &); void wait(const sc_time &, const sc_event_and_list &); void wait(double, sc_time_unit, const sc_event_and_list &); +// Nonstandard +bool timed_out(); + #define SC_MODULE(name) struct name : ::sc_core::sc_module #define SC_CTOR(name) \ diff --git a/src/systemc/ext/core/sc_prim.hh b/src/systemc/ext/core/sc_prim.hh index d6265cb56..2348f453d 100644 --- a/src/systemc/ext/core/sc_prim.hh +++ b/src/systemc/ext/core/sc_prim.hh @@ -67,6 +67,9 @@ class sc_prim_channel : public sc_object void next_trigger(const sc_time &, const sc_event_and_list &); void next_trigger(double, sc_time_unit, const sc_event_and_list &); + // Nonstandard. + bool timed_out(); + void wait(); void wait(int); void wait(const sc_event &); |