Class XAReentrantLock

  • All Implemented Interfaces:
    EDU.oswego.cs.dl.util.concurrent.Sync

    public class XAReentrantLock
    extends EDU.oswego.cs.dl.util.concurrent.ReentrantLock
    A reentrant lock for synchronization. Unlike a normal reentrant lock, this one allows the lock to be re-entered not just by a thread that's already holding the lock but by any thread within the same transaction.
    • Constructor Detail

      • XAReentrantLock

        public XAReentrantLock()
    • Method Detail

      • acquire

        public void acquire()
                     throws InterruptedException
        Specified by:
        acquire in interface EDU.oswego.cs.dl.util.concurrent.Sync
        Overrides:
        acquire in class EDU.oswego.cs.dl.util.concurrent.ReentrantLock
        Throws:
        InterruptedException
      • release

        public void release()
        Specified by:
        release in interface EDU.oswego.cs.dl.util.concurrent.Sync
        Overrides:
        release in class EDU.oswego.cs.dl.util.concurrent.ReentrantLock