event.cc (13268:9802f3e0a6ae) event.cc (13288:f1c04129f709)
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 134 unchanged lines hidden (view full) ---

143 senses[pos] = senses[--size];
144 else
145 pos++;
146 }
147 senses.resize(size);
148}
149
150void
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 134 unchanged lines hidden (view full) ---

143 senses[pos] = senses[--size];
144 else
145 pos++;
146 }
147 senses.resize(size);
148}
149
150void
151Event::notify(ResetSensitivities &senses)
152{
153 for (auto s: senses)
154 s->notify(this);
155}
156
157void
158Event::notify()
159{
160 if (scheduler.inUpdate()) {
161 SC_REPORT_ERROR("(E521) immediate notification is not allowed "
162 "during update phase or elaboration", "");
163 }
164
165 // An immediate notification overrides any pending delayed notification.
166 if (delayedNotify.scheduled())
167 scheduler.deschedule(&delayedNotify);
168
169 _triggeredStamp = scheduler.changeStamp();
151Event::notify()
152{
153 if (scheduler.inUpdate()) {
154 SC_REPORT_ERROR("(E521) immediate notification is not allowed "
155 "during update phase or elaboration", "");
156 }
157
158 // An immediate notification overrides any pending delayed notification.
159 if (delayedNotify.scheduled())
160 scheduler.deschedule(&delayedNotify);
161
162 _triggeredStamp = scheduler.changeStamp();
170 notify(resetSense);
171 notify(staticSenseMethod);
172 notify(dynamicSenseMethod);
173 notify(staticSenseThread);
174 notify(dynamicSenseThread);
175}
176
177void
178Event::notify(const sc_core::sc_time &t)

--- 38 unchanged lines hidden ---
163 notify(staticSenseMethod);
164 notify(dynamicSenseMethod);
165 notify(staticSenseThread);
166 notify(dynamicSenseThread);
167}
168
169void
170Event::notify(const sc_core::sc_time &t)

--- 38 unchanged lines hidden ---