Mercurial > projects > dwt-addons
comparison dwtx/core/runtime/jobs/LockListener.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.LockListener; | 13 module dwtx.core.runtime.jobs.LockListener; |
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.JobManager; | 18 import dwtx.core.internal.jobs.JobManager; |
19 import dwtx.core.internal.jobs.LockManager; | 19 import dwtx.core.internal.jobs.LockManager; |
20 import dwtx.core.runtime.jobs.Job; | 20 import dwtx.core.runtime.jobs.Job; |
47 * @param lockOwner the thread that currently owns the lock this thread is | 47 * @param lockOwner the thread that currently owns the lock this thread is |
48 * waiting for, or <code>null</code> if unknown. | 48 * waiting for, or <code>null</code> if unknown. |
49 * @return <code>true</code> if the thread should be granted immediate access, | 49 * @return <code>true</code> if the thread should be granted immediate access, |
50 * and <code>false</code> if it should wait for the lock to be available | 50 * and <code>false</code> if it should wait for the lock to be available |
51 */ | 51 */ |
52 public bool aboutToWait(Thread lockOwner) { | 52 public bool aboutToWait(JThread lockOwner) { |
53 return false; | 53 return false; |
54 } | 54 } |
55 | 55 |
56 /** | 56 /** |
57 * Notification that a thread is about to release a lock. | 57 * Notification that a thread is about to release a lock. |