diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/RunnableLock.d @ 112:9f4c18c268b2

Update to compile and execute with dmd 2.052.
author kntroh
date Wed, 16 Mar 2011 21:53:53 +0900
parents 2e09b0e6857a
children
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/RunnableLock.d	Sat Nov 13 14:15:51 2010 +0100
+++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/RunnableLock.d	Wed Mar 16 21:53:53 2011 +0900
@@ -18,7 +18,8 @@
     import tango.core.sync.Condition;
     import tango.core.sync.Mutex;
 } else { // Phobos
-    alias Object Mutex; //FIXME, this is just a dummy because of Mutex missing
+    import core.sync.condition;
+    import core.sync.mutex;
 }
 
 /**
@@ -32,18 +33,11 @@
     Runnable runnable;
     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 () {
@@ -56,18 +50,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();
     }
 
 }