comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/Synchronizer.d @ 47:65761bc28ab2

swt linux again compilable for d1.
author Frank Benoit <benoit@tionex.de>
date Fri, 27 Mar 2009 11:43:53 +0100
parents f713da8bc051
children ddbfe84d86df
comparison
equal deleted inserted replaced
46:17310ba3c1bc 47:65761bc28ab2
16 import org.eclipse.swt.widgets.RunnableLock; 16 import org.eclipse.swt.widgets.RunnableLock;
17 import org.eclipse.swt.internal.Compatibility; 17 import org.eclipse.swt.internal.Compatibility;
18 import java.lang.all; 18 import java.lang.all;
19 19
20 import org.eclipse.swt.SWT; 20 import org.eclipse.swt.SWT;
21 import tango.core.Thread; 21 import java.lang.Thread;
22 import org.eclipse.swt.graphics.Device; 22 import org.eclipse.swt.graphics.Device;
23 import tango.core.Exception; 23 import tango.core.Exception;
24 24
25 /** 25 /**
26 * Instances of this class provide synchronization support 26 * Instances of this class provide synchronization support
170 } 170 }
171 lock = new RunnableLock (runnable); 171 lock = new RunnableLock (runnable);
172 /* 172 /*
173 * Only remember the syncThread for syncExec. 173 * Only remember the syncThread for syncExec.
174 */ 174 */
175 lock.thread = Thread.getThis(); 175 lock.thread = Thread.currentThread();
176 addLast (lock); 176 addLast (lock);
177 } 177 }
178 } 178 }
179 if (lock is null) { 179 if (lock is null) {
180 if (runnable !is null) runnable.run (); 180 if (runnable !is null) runnable.run ();