scheduler.cc (13061:9b868a2ab73c) scheduler.cc (13063:c9905ead0041)
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

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

186 _numCycles++;
187
188 // The update phase.
189 update();
190
191 if (starved() && !runToTime)
192 scheduleStarvationEvent();
193
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

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

186 _numCycles++;
187
188 // The update phase.
189 update();
190
191 if (starved() && !runToTime)
192 scheduleStarvationEvent();
193
194 // The delta phase will happen naturally through the event queue.
194 // The delta phase.
195 for (auto &e: deltas)
196 e->run();
197 deltas.clear();
195
196 if (runOnce) {
197 eq->reschedule(&maxTickEvent, eq->getCurTick());
198 runOnce = false;
199 }
200}
201
202void

--- 109 unchanged lines hidden ---
198
199 if (runOnce) {
200 eq->reschedule(&maxTickEvent, eq->getCurTick());
201 runOnce = false;
202 }
203}
204
205void

--- 109 unchanged lines hidden ---