diff dwtx/core/internal/jobs/Deadlock.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
line wrap: on
line diff
--- a/dwtx/core/internal/jobs/Deadlock.d	Mon Sep 08 01:01:30 2008 +0200
+++ b/dwtx/core/internal/jobs/Deadlock.d	Tue Sep 09 15:59:16 2008 +0200
@@ -12,7 +12,7 @@
  *******************************************************************************/
 module dwtx.core.internal.jobs.Deadlock;
 
-import tango.core.Thread;
+import dwtx.dwtxhelper.JThread;
 
 import dwt.dwthelper.utils;
 
@@ -26,13 +26,13 @@
  */
 class Deadlock {
     //all the threads which are involved in the deadlock
-    private Thread[] threads;
+    private JThread[] threads;
     //the thread whose locks will be suspended to resolve deadlock
-    private Thread candidate;
+    private JThread candidate;
     //the locks that will be suspended
     private ISchedulingRule[] locks;
 
-    public this(Thread[] threads, ISchedulingRule[] locks, Thread candidate) {
+    public this(JThread[] threads, ISchedulingRule[] locks, JThread candidate) {
         this.threads = threads;
         this.locks = locks;
         this.candidate = candidate;
@@ -42,11 +42,11 @@
         return locks;
     }
 
-    public Thread getCandidate() {
+    public JThread getCandidate() {
         return candidate;
     }
 
-    public Thread[] getThreads() {
+    public JThread[] getThreads() {
         return threads;
     }
 }