5 |
|
*/ |
6 |
|
|
7 |
|
package java.util.concurrent; |
8 |
– |
import sun.misc.Unsafe; |
8 |
|
import java.util.Date; |
9 |
|
|
10 |
|
/** |
54 |
|
* @spec JSR-166 |
55 |
|
* @revised $Date$ |
56 |
|
* @editor $Author$ |
57 |
+ |
* @author Doug Lea |
58 |
|
* |
59 |
|
**/ |
60 |
|
public class Locks { |
192 |
|
* Returns a conservative indicator of whether the given lock is |
193 |
|
* held by any thread. This method always returns true if |
194 |
|
* the lock is held, but may return true even if not held. |
195 |
< |
* |
195 |
> |
* @param lock the object serving as a lock |
196 |
|
* @return true if lock is held, and either true or false if not held. |
197 |
|
*/ |
198 |
|
public static boolean mightBeLocked(Object lock) { |