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

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

267 scMain->run();
268}
269
270void
271Scheduler::stop()
272{
273 _stopped = true;
274 kernel->stop();
275
276 if (readyEvent.scheduled())
277 eq->deschedule(&readyEvent);
278
279 runOnce = false;
280 scMain->run();
281}
282
283void
284Scheduler::start(Tick max_tick, bool run_to_time)
285{
286 // We should be running from sc_main. Keep track of that Fiber to return

--- 72 unchanged lines hidden ---