simple_thread.cc (5529:9ae69b9cd7fd) | simple_thread.cc (5543:3af77710f397) |
---|---|
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; --- 206 unchanged lines hidden (view full) --- 215SimpleThread::activate(int delay) 216{ 217 if (status() == ThreadContext::Active) 218 return; 219 220 lastActivate = curTick; 221 222// if (status() == ThreadContext::Unallocated) { | 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; --- 206 unchanged lines hidden (view full) --- 215SimpleThread::activate(int delay) 216{ 217 if (status() == ThreadContext::Active) 218 return; 219 220 lastActivate = curTick; 221 222// if (status() == ThreadContext::Unallocated) { |
223// cpu->activateWhenReady(tid); 224// return; | 223// cpu->activateWhenReady(tid); 224// return; |
225// } 226 227 _status = ThreadContext::Active; 228 229 // status() == Suspended 230 cpu->activateContext(tid, delay); 231} 232 --- 57 unchanged lines hidden --- | 225// } 226 227 _status = ThreadContext::Active; 228 229 // status() == Suspended 230 cpu->activateContext(tid, delay); 231} 232 --- 57 unchanged lines hidden --- |