scheduler.cc (13289:f32600676fe3) | scheduler.cc (13308:30e825b4fd46) |
---|---|
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 --- 157 unchanged lines hidden (view full) --- 166 } else { 167 _current->popListNode(); 168 // Switch to whatever Fiber is supposed to run this process. All 169 // Fibers which aren't running should be parked at this line. 170 _current->fiber()->run(); 171 // If the current process needs to be manually started, start it. 172 if (_current && _current->needsStart()) { 173 _current->needsStart(false); | 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 --- 157 unchanged lines hidden (view full) --- 166 } else { 167 _current->popListNode(); 168 // Switch to whatever Fiber is supposed to run this process. All 169 // Fibers which aren't running should be parked at this line. 170 _current->fiber()->run(); 171 // If the current process needs to be manually started, start it. 172 if (_current && _current->needsStart()) { 173 _current->needsStart(false); |
174 // If a process hasn't started yet, "resetting" it just starts it 175 // and signals its reset event. 176 if (_current->inReset()) 177 _current->resetEvent().notify(); |
|
174 try { 175 _current->run(); 176 } catch (...) { 177 throwToScMain(); 178 } 179 } 180 } 181 if (_current && !_current->needsStart()) { --- 315 unchanged lines hidden --- | 178 try { 179 _current->run(); 180 } catch (...) { 181 throwToScMain(); 182 } 183 } 184 } 185 if (_current && !_current->needsStart()) { --- 315 unchanged lines hidden --- |