| 构造器和说明 |
|---|
MutexLock() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
hasQueuedThreads() |
boolean |
isLocked() |
void |
lock() |
void |
lockInterruptibly() |
Condition |
newCondition() |
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit unit) |
void |
unlock() |
public void lockInterruptibly()
throws InterruptedException
lockInterruptibly 在接口中 LockInterruptedExceptionpublic boolean tryLock(long time,
TimeUnit unit)
throws InterruptedException
tryLock 在接口中 LockInterruptedExceptionpublic Condition newCondition()
newCondition 在接口中 Lockpublic boolean isLocked()
public boolean hasQueuedThreads()
Copyright © 2016. All rights reserved.