event.cc (13295:e71ae162b863) | event.cc (13299:6bde86615f6f) |
---|---|
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 --- 165 unchanged lines hidden (view full) --- 174 return; 175 176 scheduler.deschedule(&delayedNotify); 177 } 178 scheduler.schedule(&delayedNotify, t); 179} 180 181void | 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 --- 165 unchanged lines hidden (view full) --- 174 return; 175 176 scheduler.deschedule(&delayedNotify); 177 } 178 scheduler.schedule(&delayedNotify, t); 179} 180 181void |
182Event::notifyDelayed(const sc_core::sc_time &t) 183{ 184 if (delayedNotify.scheduled()) { 185 SC_REPORT_ERROR("(E531) notify_delayed() cannot be called on events " 186 "that have pending notifications", ""); 187 } 188 notify(t); 189} 190 191void |
|
182Event::cancel() 183{ 184 if (delayedNotify.scheduled()) 185 scheduler.deschedule(&delayedNotify); 186} 187 188bool 189Event::triggered() const --- 29 unchanged lines hidden --- | 192Event::cancel() 193{ 194 if (delayedNotify.scheduled()) 195 scheduler.deschedule(&delayedNotify); 196} 197 198bool 199Event::triggered() const --- 29 unchanged lines hidden --- |