scheduler.hh (13078:f11496886d1a) | scheduler.hh (13096:9295fa397b3f) |
---|---|
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 --- 252 unchanged lines hidden (view full) --- 261 } 262 } 263 264 void 265 completeTimeSlot(TimeSlot *ts) 266 { 267 assert(ts == timeSlots.begin()->second); 268 timeSlots.erase(timeSlots.begin()); | 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 --- 252 unchanged lines hidden (view full) --- 261 } 262 } 263 264 void 265 completeTimeSlot(TimeSlot *ts) 266 { 267 assert(ts == timeSlots.begin()->second); 268 timeSlots.erase(timeSlots.begin()); |
269 if (!runToTime && starved()) 270 scheduleStarvationEvent(); |
|
269 } 270 271 // Pending activity ignores gem5 activity, much like how a systemc 272 // simulation wouldn't know about asynchronous external events (socket IO 273 // for instance) that might happen before time advances in a pure 274 // systemc simulation. Also the spec lists what specific types of pending 275 // activity needs to be counted, which obviously doesn't include gem5 276 // events. --- 133 unchanged lines hidden --- | 271 } 272 273 // Pending activity ignores gem5 activity, much like how a systemc 274 // simulation wouldn't know about asynchronous external events (socket IO 275 // for instance) that might happen before time advances in a pure 276 // systemc simulation. Also the spec lists what specific types of pending 277 // activity needs to be counted, which obviously doesn't include gem5 278 // events. --- 133 unchanged lines hidden --- |