handling isInterrupted() when impl. Runnable I/F
posted 15 years ago
When I implement Runnable interface and check isInterrupted() in the run method, it won't compile because isInterrupted() is a member of Thread. Since it's a non static member, I can't also invoke like Thread.isInterrupted(). How do I handle that? I can use the static method interrupted(), but that's going to reset the interrupted flag and I don't want that.
Peter den Haan