Class JmcReentrantLock

java.lang.Object
org.mpi_sws.jmc.api.util.concurrent.JmcReentrantLock

public class JmcReentrantLock extends Object
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 Details

    • JmcReentrantLock

      public JmcReentrantLock()
    • JmcReentrantLock

      public JmcReentrantLock(Object lockObj)
  • Method Details

    • lock

      public void lock()
      Acquires the lock.
    • unlock

      public void unlock()
      Releases the lock.