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 --- 176 unchanged lines hidden (view full) --- 185 ew->throw_it(); 186 } 187} 188 189void 190Scheduler::ready(Process *p) 191{ 192 // Clump methods together to minimize context switching. |
193 static bool cluster_methods = false; 194 195 if (cluster_methods && p->procKind() == ::sc_core::SC_METHOD_PROC_) |
196 readyList.pushFirst(p); 197 else 198 readyList.pushLast(p); 199 200 scheduleReadyEvent(); 201} 202 203void --- 192 unchanged lines hidden --- |