public interface ReentrantLock
ReentrantLock for more information on how re-entrant locks work.| Modifier and Type | Method and Description |
|---|---|
boolean |
isHeldByCurrentThread()
Checks if the current thread owns this lock
|
void |
lock()
Acquires the lock
|
boolean |
tryLock()
Attempts to acquire the lock
|
void |
unlock()
Releases the lock
|
boolean isHeldByCurrentThread()
void lock()
boolean tryLock()
void unlock()