Mercurial > projects > dwt2
diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Synchronizer.d @ 38:2e09b0e6857a
work on phobosfication
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 25 Mar 2009 11:18:25 +0100 |
parents | d46287db17ed |
children | 9f4c18c268b2 |
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Synchronizer.d Wed Mar 25 08:46:48 2009 +0100 +++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Synchronizer.d Wed Mar 25 11:18:25 2009 +0100 @@ -15,12 +15,17 @@ import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.RunnableLock; import org.eclipse.swt.internal.Compatibility; +import org.eclipse.swt.graphics.Device; import org.eclipse.swt.SWT; + import java.lang.all; import java.lang.Thread; -import tango.core.Exception: SyncException; -import org.eclipse.swt.graphics.Device; + +version(Tango){ + import tango.core.Exception: SyncException; +} else { // Phobos +} /** * Instances of this class provide synchronization support @@ -189,10 +194,14 @@ synchronized (lock) { bool interrupted = false; while (!lock.done ()) { - try { - lock.wait (); - } catch (SyncException e) { - interrupted = true; + version(Tango){ + try { + lock.wait (); + } catch (SyncException e) { + interrupted = true; + } + } else { // Phobos + implMissing( __FILE__, __LINE__ ); } } if (interrupted) {