Class JmcReentrantLock
java.lang.Object
org.mpi_sws.jmc.api.util.concurrent.JmcReentrantLock
A reentrant lock that can be used to synchronize access to shared resources. Replacement for
ReentrantLock
Yields control to the runtime for lock and unlock.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JmcReentrantLock
public JmcReentrantLock() -
JmcReentrantLock
-
-
Method Details
-
lock
public void lock()Acquires the lock. -
unlock
public void unlock()Releases the lock.
-