scheduler.cc (13264:cdb71995fe75) | scheduler.cc (13275:67a279e54b7a) |
---|---|
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 --- 266 unchanged lines hidden (view full) --- 275 bool empty = readyListMethods.empty() && readyListThreads.empty(); 276 lastReadyTick = getCurTick(); 277 278 // The evaluation phase. 279 status(StatusEvaluate); 280 do { 281 yield(); 282 } while (getNextReady()); | 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 --- 266 unchanged lines hidden (view full) --- 275 bool empty = readyListMethods.empty() && readyListThreads.empty(); 276 lastReadyTick = getCurTick(); 277 278 // The evaluation phase. 279 status(StatusEvaluate); 280 do { 281 yield(); 282 } while (getNextReady()); |
283 _current = nullptr; |
|
283 284 if (!empty) { 285 _numCycles++; 286 _changeStamp++; 287 } 288 289 if (_stopNow) { 290 status(StatusOther); --- 205 unchanged lines hidden --- | 284 285 if (!empty) { 286 _numCycles++; 287 _changeStamp++; 288 } 289 290 if (_stopNow) { 291 status(StatusOther); --- 205 unchanged lines hidden --- |