Bug 315281 update copyrights for 3.6
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/core/tests/databinding/observable/ThreadRealm.java
block = true;
            synchronized (queue) {
                queue.notifyAll(); 
            }
            while (block) {
                Runnable runnable = null;
                synchronized (queue) {
                    if (queue.isEmpty()) {
                        queue.wait();
                    } else {
                        runnable = (Runnable) queue.getFirst();
                    }
                }
                if (runnable != null) {
                    safeRun(runnable);
                    synchronized (queue) {
                        
                        
                        
                        queue.removeFirst();
                        queue.notifyAll();
                    }
                }
            }
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        } finally {
            block = false;
        }
    }