Mercurial > projects > dwt2
diff org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/RunnableLock.d @ 49:7a2dd761a8b2
more work until dmd 2.026 linux segfaults.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 27 Mar 2009 12:59:54 +0100 |
parents | ddbfe84d86df |
children | fb3aa8075988 |
line wrap: on
line diff
--- a/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/RunnableLock.d Fri Mar 27 12:05:20 2009 +0100 +++ b/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/RunnableLock.d Fri Mar 27 12:59:54 2009 +0100 @@ -16,9 +16,10 @@ import java.lang.Thread; version(Tango){ -import tango.core.sync.Condition; -import tango.core.sync.Mutex; + import tango.core.sync.Condition; + import tango.core.sync.Mutex; } else { // Phobos + alias Object Mutex; // FIXME, real mutex is needed } /** @@ -33,11 +34,18 @@ Thread thread; Exception throwable; - Condition cond; + version(Tango){ + Condition cond; + } else { // Phobos + } this (Runnable runnable) { this.runnable = runnable; - this.cond = new Condition(this); + version(Tango){ + this.cond = new Condition(this); + } else { // Phobos + implMissing(__FILE__, __LINE__); + } } bool done () { @@ -50,10 +58,18 @@ } void notifyAll(){ - cond.notifyAll(); + version(Tango){ + cond.notifyAll(); + } else { // Phobos + implMissing(__FILE__, __LINE__); + } } void wait(){ - cond.wait(); + version(Tango){ + cond.wait(); + } else { // Phobos + implMissing(__FILE__, __LINE__); + } } }