comparison dwtx/core/runtime/jobs/Job.d @ 167:862b05e0334a

Add a wrapper for Thread
author Frank Benoit <benoit@tionex.de>
date Tue, 09 Sep 2008 15:59:16 +0200
parents 9d0585bcb7aa
children
comparison
equal deleted inserted replaced
163:e5dd0081ccba 167:862b05e0334a
10 * Port to the D programming language: 10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de> 11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/ 12 *******************************************************************************/
13 module dwtx.core.runtime.jobs.Job; 13 module dwtx.core.runtime.jobs.Job;
14 14
15 import tango.core.Thread; 15 import dwtx.dwtxhelper.JThread;
16 import dwt.dwthelper.utils; 16 import dwt.dwthelper.utils;
17 17
18 import dwtx.core.internal.jobs.InternalJob; 18 import dwtx.core.internal.jobs.InternalJob;
19 import dwtx.core.internal.jobs.JobManager; 19 import dwtx.core.internal.jobs.JobManager;
20 import dwtx.core.runtime.IAdaptable; 20 import dwtx.core.runtime.IAdaptable;
333 * Returns the thread that this job is currently running in. 333 * Returns the thread that this job is currently running in.
334 * 334 *
335 * @return the thread this job is running in, or <code>null</code> 335 * @return the thread this job is running in, or <code>null</code>
336 * if this job is not running or the thread is unknown. 336 * if this job is not running or the thread is unknown.
337 */ 337 */
338 public final Thread getThread() { 338 public final JThread getThread() {
339 return super.getThread(); 339 return super.getThread();
340 } 340 }
341 341
342 /** 342 /**
343 * Returns whether this job is blocking a higher priority non-system job from 343 * Returns whether this job is blocking a higher priority non-system job from
607 * @param thread the thread that this job is running in. 607 * @param thread the thread that this job is running in.
608 * 608 *
609 * @see #ASYNC_FINISH 609 * @see #ASYNC_FINISH
610 * @see #run(IProgressMonitor) 610 * @see #run(IProgressMonitor)
611 */ 611 */
612 public final void setThread(Thread thread) { 612 public final void setThread(JThread thread) {
613 super.setThread(thread); 613 super.setThread(thread);
614 } 614 }
615 615
616 /** 616 /**
617 * Returns whether this job should be run. 617 * Returns whether this job should be run.