|
|
|
@ -353,7 +353,7 @@ public class SimpleThreadPool implements ThreadPool {
|
|
|
|
|
while(handoffPending) { |
|
|
|
|
try { |
|
|
|
|
nextRunnableLock.wait(100); |
|
|
|
|
} catch(InterruptedException _) { |
|
|
|
|
} catch(InterruptedException e) { |
|
|
|
|
interrupted = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -369,7 +369,7 @@ public class SimpleThreadPool implements ThreadPool {
|
|
|
|
|
// note: with waiting infinite time the
|
|
|
|
|
// application may appear to 'hang'.
|
|
|
|
|
nextRunnableLock.wait(2000); |
|
|
|
|
} catch (InterruptedException _) { |
|
|
|
|
} catch (InterruptedException e) { |
|
|
|
|
interrupted = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -380,7 +380,7 @@ public class SimpleThreadPool implements ThreadPool {
|
|
|
|
|
try { |
|
|
|
|
wt.join(); |
|
|
|
|
workerThreads.remove(); |
|
|
|
|
} catch (InterruptedException _) { |
|
|
|
|
} catch (InterruptedException e) { |
|
|
|
|
interrupted = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|