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 --- 36 unchanged lines hidden (view full) --- 45{ 46 47Scheduler::Scheduler() : 48 eq(nullptr), readyEvent(this, false, ReadyPriority), 49 pauseEvent(this, false, PausePriority), 50 stopEvent(this, false, StopPriority), _throwUp(nullptr), 51 starvationEvent(this, false, StarvationPriority), 52 _elaborationDone(false), _started(false), _stopNow(false), |
53 _status(StatusOther), maxTick(::MaxTick), 54 maxTickEvent(this, false, MaxTickPriority), |
55 timeAdvancesEvent(this, false, TimeAdvancesPriority), _numCycles(0), |
56 _changeStamp(0), _current(nullptr), initDone(false), runToTime(true), 57 runOnce(false) |
58{} 59 60Scheduler::~Scheduler() 61{ 62 // Clear out everything that belongs to us to make sure nobody tries to 63 // clear themselves out after the scheduler goes away. 64 clear(); 65} --- 446 unchanged lines hidden --- |