Mercurial > projects > dwt2
diff java/src/java/util/Timer.d @ 19:52184e4b815c
no more direct tango.core.Thread. Rename JThread to java.lang.Thread.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 18 Mar 2009 10:55:25 +0100 |
parents | bc29606a740c |
children | 9b96950f2c3c |
line wrap: on
line diff
--- a/java/src/java/util/Timer.d Wed Mar 18 09:57:53 2009 +0100 +++ b/java/src/java/util/Timer.d Wed Mar 18 10:55:25 2009 +0100 @@ -2,7 +2,7 @@ import java.util.TimerTask; // import tango.util.container.CircularList; -import java.lang.JThread; +import java.lang.Thread; import tango.core.sync.Mutex; import tango.core.sync.Condition; // import tango.time.Time; @@ -207,7 +207,7 @@ private static int nr; private TaskQueue queue; private Scheduler scheduler; - private JThread thread; + private Thread thread; private bool canceled; public this() { @@ -215,7 +215,7 @@ } public this(bool daemon) { - this(daemon, JThread.NORM_PRIORITY); + this(daemon, Thread.NORM_PRIORITY); } private this(bool daemon, int priority) { @@ -226,7 +226,7 @@ canceled = false; queue = new TaskQueue(); scheduler = new Scheduler(queue); - thread = new JThread(scheduler, name); + thread = new Thread(scheduler, name); thread.setDaemon(daemon); thread.setPriority(priority); thread.start(); @@ -315,7 +315,7 @@ /////////////////////////////////////////////////// /+ alias CircularList!( TimerTask ) ListType; - private JThread thread; + private Thread thread; private ListType schedules; private Mutex mutex; private Condition cond; @@ -329,7 +329,7 @@ cond = new Condition( mutex ); schedules = new ListType(); - thread = new JThread( &run ); + thread = new Thread( &run ); thread.setDaemon( isDaemon ); thread.start(); }