event.cc (13179:7445c43d036b) | event.cc (13187:ee28771420a6) |
---|---|
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 --- 122 unchanged lines hidden (view full) --- 131Event::getParentObject() const 132{ 133 return parent; 134} 135 136void 137Event::notify() 138{ | 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 --- 122 unchanged lines hidden (view full) --- 131Event::getParentObject() const 132{ 133 return parent; 134} 135 136void 137Event::notify() 138{ |
139 if (scheduler.inUpdate()) { 140 SC_REPORT_ERROR("(E521) immediate notification is not allowed " 141 "during update phase or elaboration", ""); 142 } 143 |
|
139 // An immediate notification overrides any pending delayed notification. 140 if (delayedNotify.scheduled()) 141 scheduler.deschedule(&delayedNotify); 142 143 auto local_sensitivities = sensitivities; 144 for (auto s: local_sensitivities) 145 s->notify(this); 146} --- 41 unchanged lines hidden --- | 144 // An immediate notification overrides any pending delayed notification. 145 if (delayedNotify.scheduled()) 146 scheduler.deschedule(&delayedNotify); 147 148 auto local_sensitivities = sensitivities; 149 for (auto s: local_sensitivities) 150 s->notify(this); 151} --- 41 unchanged lines hidden --- |