Bug 164343 [DataBinding] Realm needs consistent Exception handling strategy
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/observable/ThreadRealm.java
}
                    
                    
                    
                    if (!queue.isEmpty()) {
                        runnable = (Runnable) queue.removeFirst();
                    }
                }
                if (runnable != null) {
                    runnable.run();
                    runnable = null;
                }
            }
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        } finally {
            block = false;
        }
    }
    /**
     * Unblocks the thread.
     */
    public void unblock() {
        block = false;
        
        synchronized (queue) {
            queue.notifyAll();
        }
    }
}