Mercurial > projects > dwt2
diff org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet288.d @ 109:8ae65ae167f5
Updated swt win32 for DMD 1.063 and latest Tango trunk.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Wed, 15 Sep 2010 16:42:28 +0200 |
parents | 93b0e7382fd5 |
children | 9f4c18c268b2 |
line wrap: on
line diff
--- a/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet288.d Wed Aug 25 23:08:27 2010 +0200 +++ b/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet288.d Wed Sep 15 16:42:28 2010 +0200 @@ -33,7 +33,7 @@ import tango.io.FilePath; import tango.io.model.IFile; -import tango.core.Thread; +//import tango.core.Thread; import tango.io.Stdout; import tango.util.Convert; import tango.core.Exception; @@ -88,7 +88,7 @@ } display.dispose (); } - thread_joinAll(); + Thread.joinAll(); } private static void loadAllImages(char[] directory, char[][] filenames) { @@ -167,8 +167,8 @@ int id = 0; this(int _id) { id = _id; - name = "Animation "~to!(char[])(ii); - isDaemon = true; + //name = "Animation "~to!(char[])(ii); + //isDaemon = true; super(&run); } void run() { @@ -190,7 +190,7 @@ int ms = imageDataArray[id][imageDataIndex].delayTime * 10; if (ms < 20) ms += 30; if (ms < 30) ms += 10; - Thread.sleep(0.001*ms); + Thread.sleep(1 * ms); } catch (ThreadException e) { }