simple_thread.cc (4217:4c966fec2324) | simple_thread.cc (4400:619191b2f011) |
---|---|
1/* 2 * Copyright (c) 2001-2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 207 unchanged lines hidden (view full) --- 216void 217SimpleThread::activate(int delay) 218{ 219 if (status() == ThreadContext::Active) 220 return; 221 222 lastActivate = curTick; 223 | 1/* 2 * Copyright (c) 2001-2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 207 unchanged lines hidden (view full) --- 216void 217SimpleThread::activate(int delay) 218{ 219 if (status() == ThreadContext::Active) 220 return; 221 222 lastActivate = curTick; 223 |
224 if (status() == ThreadContext::Unallocated) { 225 cpu->activateWhenReady(tid); 226 return; 227 } | 224// if (status() == ThreadContext::Unallocated) { 225// cpu->activateWhenReady(tid); 226// return; 227// } |
228 229 _status = ThreadContext::Active; 230 231 // status() == Suspended 232 cpu->activateContext(tid, delay); 233} 234 235void --- 79 unchanged lines hidden --- | 228 229 _status = ThreadContext::Active; 230 231 // status() == Suspended 232 cpu->activateContext(tid, delay); 233} 234 235void --- 79 unchanged lines hidden --- |