Package xbird.util.struct

Examples of xbird.util.struct.MutableLongPair


        this._oid = System.identityHashCode(this);
    }

    public CloseableMappedByteBuffer allocateBuffer(final long pageOffset) {
        final MutableLongPair pair = new MutableLongPair(_oid, pageOffset);
        final Map<MutableLongPair, CloseableMappedByteBuffer> pool = _pool;
        CloseableMappedByteBuffer buf;
        synchronized(pool) {
            buf = pool.get(pair);
            if(buf == null || !AtomicUtils.tryIncrementIfGreaterThan(buf.referenceCount(), 0)) {
View Full Code Here


        this._oid = System.identityHashCode(this);
    }

    public CloseableMappedByteBuffer allocateBuffer(final long pageOffset) {
        final MutableLongPair pair = new MutableLongPair(_oid, pageOffset);
        final Map<MutableLongPair, CloseableMappedByteBuffer> pool = _pool;
        CloseableMappedByteBuffer buf;
        synchronized(pool) {
            buf = pool.get(pair);
            if(buf == null || !AtomicUtils.tryIncrementIfGreaterThan(buf.referenceCount(), 0)) {
View Full Code Here

TOP

Related Classes of xbird.util.struct.MutableLongPair

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.