scheduler.hh (13194:9c6b495e650c) | scheduler.hh (13203:76ee4971fd9e) |
---|---|
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 --- 324 unchanged lines hidden (view full) --- 333 StatusOther = 0, 334 StatusDelta, 335 StatusUpdate, 336 StatusTiming, 337 StatusPaused, 338 StatusStopped 339 }; 340 | 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 --- 324 unchanged lines hidden (view full) --- 333 StatusOther = 0, 334 StatusDelta, 335 StatusUpdate, 336 StatusTiming, 337 StatusPaused, 338 StatusStopped 339 }; 340 |
341 bool elaborationDone() { return _elaborationDone; } 342 void elaborationDone(bool b) { _elaborationDone = b; } 343 |
|
341 bool paused() { return status() == StatusPaused; } 342 bool stopped() { return status() == StatusStopped; } 343 bool inDelta() { return status() == StatusDelta; } 344 bool inUpdate() { return status() == StatusUpdate; } 345 bool inTiming() { return status() == StatusTiming; } 346 347 uint64_t changeStamp() { return _changeStamp; } 348 --- 56 unchanged lines hidden (view full) --- 405 return (readyListMethods.empty() && readyListThreads.empty() && 406 updateList.empty() && deltas.empty() && 407 (timeSlots.empty() || timeSlots.begin()->first > maxTick) && 408 initList.empty()); 409 } 410 EventWrapper<Scheduler, &Scheduler::pause> starvationEvent; 411 void scheduleStarvationEvent(); 412 | 344 bool paused() { return status() == StatusPaused; } 345 bool stopped() { return status() == StatusStopped; } 346 bool inDelta() { return status() == StatusDelta; } 347 bool inUpdate() { return status() == StatusUpdate; } 348 bool inTiming() { return status() == StatusTiming; } 349 350 uint64_t changeStamp() { return _changeStamp; } 351 --- 56 unchanged lines hidden (view full) --- 408 return (readyListMethods.empty() && readyListThreads.empty() && 409 updateList.empty() && deltas.empty() && 410 (timeSlots.empty() || timeSlots.begin()->first > maxTick) && 411 initList.empty()); 412 } 413 EventWrapper<Scheduler, &Scheduler::pause> starvationEvent; 414 void scheduleStarvationEvent(); 415 |
416 bool _elaborationDone; |
|
413 bool _started; 414 bool _stopNow; 415 416 Status _status; 417 418 Tick maxTick; 419 Tick lastReadyTick; 420 void --- 55 unchanged lines hidden --- | 417 bool _started; 418 bool _stopNow; 419 420 Status _status; 421 422 Tick maxTick; 423 Tick lastReadyTick; 424 void --- 55 unchanged lines hidden --- |