Mercurial > projects > dwt-addons
diff dwtx/core/internal/jobs/Semaphore.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/Semaphore.d Mon Sep 08 01:01:30 2008 +0200 +++ b/dwtx/core/internal/jobs/Semaphore.d Tue Sep 09 15:59:16 2008 +0200 @@ -12,7 +12,7 @@ *******************************************************************************/ module dwtx.core.internal.jobs.Semaphore; -import tango.core.Thread; +import dwtx.dwtxhelper.JThread; import tango.core.sync.Mutex; import tango.core.sync.Condition; import dwt.dwthelper.utils; @@ -21,12 +21,12 @@ public class Semaphore { protected long notifications; - protected Thread runnable; + protected JThread runnable; private Mutex mutex; private Condition condition; - public this(Thread runnable) { + public this(JThread runnable) { mutex = new Mutex; condition = new Condition(mutex); this.runnable = runnable;