Package com.arjuna.ats.internal.txoj

Examples of com.arjuna.ats.internal.txoj.LockListIterator


     * <code>PrintWriter</code>.
     */

    public void print (PrintWriter strm)
    {
        LockListIterator next = new LockListIterator(locksHeld);
        Lock current;

        strm.println("LocalLockManager for object " + get_uid());

        if (!stateLoaded)
            strm.println("No loaded state");
        else if (locksHeld != null)
        {
            strm.println("\tCurrently holding : " + locksHeld.entryCount()
                    + " locks");

            while ((current = next.iterate()) != null)
                current.print(strm);
        }
        else
            strm.println("Currently holding : 0 locks");
    }
View Full Code Here


                    /*
                     * Must declare iterator after loadstate or it sees an empty
                     * list!
                     */

                    LockListIterator next = new LockListIterator(locksHeld);

                    /*
                     * Now scan through held lock list to find which locks to
                     * release u is either the unique id of the lock owner
                     * (oneOrAll = ALL_LOCKS) or the uid of the actual lock
                     * itself (oneOrAll = SINGLE_LOCK).
                     */

                    previous = null;

                    while ((current = next.iterate()) != null)
                    {
                        Uid checkUid = null;

                        if (all)
                            checkUid = current.getCurrentOwner();
View Full Code Here

                    "LockManager::lockConflict(" + otherLock.get_uid() + ")");
        }

        boolean matching = false;
        Lock heldLock = null;
        LockListIterator next = new LockListIterator(locksHeld);

        while ((heldLock = next.iterate()) != null)
        {
            if (heldLock.conflictsWith(otherLock))
            {
                if (LockManager.nestedLocking)
                {
View Full Code Here

TOP

Related Classes of com.arjuna.ats.internal.txoj.LockListIterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.