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 runOnce = false;
276 scMain->run();
277}
278
279void
280Scheduler::start(Tick max_tick, bool run_to_time)
281{
282 // We should be running from sc_main. Keep track of that Fiber to return
--- 72 unchanged lines hidden ---
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 runOnce = false;
276 scMain->run();
277}
278
279void
280Scheduler::start(Tick max_tick, bool run_to_time)
281{
282 // We should be running from sc_main. Keep track of that Fiber to return
--- 72 unchanged lines hidden ---