|
From: Shankar U. <sh...@co...> - 2004-03-02 00:11:37
|
Ken Anderson wrote:
> if (INTERRUPTABLE) interruptCheck();
...
> public static void interrupt (Thread t) {
> INTERRUPTABLE = true;
> t.interrupt();
> }
Beware of race conditions! Swap the order of those two statements below (in
interrupt()), and it'll be safer..
|