Interrupting Event Dispatch Threads

The Java method Thread.interrupt() is ineffective when all of these conditions are simultaneously true:

Tibrv is open using the native (JNI) implementation.
The thread dispatches an event queue or queue group.
The queue or queue group is empty of events.

To effectively interrupt such a thread, a program can destroy the queue or queue group. In this situation, the dispatch method throws an exception; the thread can use that exception as an occasion to exit.