diff org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/RunnableLock.d @ 113:fb3aa8075988

D2 support for the linux port.
author Jacob Carlborg <doob@me.com>
date Wed, 06 Apr 2011 21:57:23 +0200
parents 7a2dd761a8b2
children
line wrap: on
line diff
--- a/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/RunnableLock.d	Wed Mar 16 21:53:53 2011 +0900
+++ b/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/RunnableLock.d	Wed Apr 06 21:57:23 2011 +0200
@@ -19,7 +19,8 @@
     import tango.core.sync.Condition;
     import tango.core.sync.Mutex;
 } else { // Phobos
-    alias Object Mutex; // FIXME, real mutex is needed
+    import core.sync.condition;
+    import core.sync.mutex;
 }
 
 /**
@@ -34,18 +35,11 @@
     Thread thread;
     Exception throwable;
 
-    version(Tango){
-        Condition cond;
-    } else { // Phobos
-    }
+    Condition cond;
 
 this (Runnable runnable) {
     this.runnable = runnable;
-    version(Tango){
-        this.cond = new Condition(this);
-    } else { // Phobos
-        implMissing(__FILE__, __LINE__);
-    }
+    this.cond = new Condition(this);
 }
 
 bool done () {
@@ -58,18 +52,10 @@
 }
 
 void notifyAll(){
-    version(Tango){
-        cond.notifyAll();
-    } else { // Phobos
-        implMissing(__FILE__, __LINE__);
-    }
+    cond.notifyAll();
 }
 void wait(){
-    version(Tango){
-        cond.wait();
-    } else { // Phobos
-        implMissing(__FILE__, __LINE__);
-    }
+    cond.wait();
 }
 
 }