version 1.90.2.4, 2006/07/28 21:22:01
|
version 1.90.2.5, 2006/07/28 21:29:54
|
|
|
Tracer::trace(TRC_THREAD, Tracer::LEVEL2, | Tracer::trace(TRC_THREAD, Tracer::LEVEL2, |
"Cleaning up %d idle threads. ", _currentThreads.get()); | "Cleaning up %d idle threads. ", _currentThreads.get()); |
| |
printf("***BEFORE\n"); |
|
while (_currentThreads.get() > 0) | while (_currentThreads.get() > 0) |
{ | { |
Thread* thread = _idleThreads.remove_front(); | Thread* thread = _idleThreads.remove_front(); |
if (thread != 0) | if (thread != 0) |
{ | { |
printf("***INSIDE1\n"); |
|
_cleanupThread(thread); | _cleanupThread(thread); |
_currentThreads--; | _currentThreads--; |
} | } |
else | else |
{ | { |
printf("***INSIDE2\n"); |
|
Threads::yield(); | Threads::yield(); |
} | } |
} | } |
printf("***AFTER\n"); |
|
} | } |
catch (...) | catch (...) |
{ | { |