Package org.apache.mina.util

Examples of org.apache.mina.util.Stack.pop()


    private static ByteBuffer allocate(int idx) {
        Stack stack = bufferStacks[idx];

        ByteBuffer buf;
        synchronized (stack) {
            buf = (ByteBuffer) stack.pop();
            if (buf == null) {
                buf = createBuffer(bufferStackSizes[idx]);
            }
        }
View Full Code Here


        Stack stack = bufferStacks[ idx ];

        java.nio.ByteBuffer buf;
        synchronized( stack )
        {
            buf = ( java.nio.ByteBuffer ) stack.pop();
        }

        if( buf == null )
        {
            buf = direct ? java.nio.ByteBuffer.allocateDirect( MINIMUM_CAPACITY << idx ) :
View Full Code Here

        Stack stack = bufferStacks[ idx ];

        ByteBuffer buf;
        synchronized( stack )
        {
            buf = ( ByteBuffer ) stack.pop();
            if( buf == null )
            {
                buf = createBuffer( bufferStackSizes[ idx ] );
            }
        }
View Full Code Here

        Stack stack = bufferStacks[ idx ];

        ByteBuffer buf;
        synchronized( stack )
        {
            buf = ( ByteBuffer ) stack.pop();
            if( buf == null )
            {
                buf = createBuffer( bufferStackSizes[ idx ] );
            }
        }
View Full Code Here

        Stack stack = bufferStacks[ idx ];

        ByteBuffer buf;
        synchronized( stack )
        {
            buf = ( ByteBuffer ) stack.pop();
            if( buf == null )
            {
                buf = createBuffer( bufferStackSizes[ idx ] );
            }
        }
View Full Code Here

        Stack stack = bufferStacks[ idx ];

        ByteBuffer buf;
        synchronized( stack )
        {
            buf = ( ByteBuffer ) stack.pop();
            if( buf == null )
            {
                buf = createBuffer( bufferStackSizes[ idx ] );
            }
        }
View Full Code Here

        Stack stack = bufferStacks[ idx ];

        ByteBuffer buf;
        synchronized( stack )
        {
            buf = ( ByteBuffer ) stack.pop();
            if( buf == null )
            {
                buf = createBuffer( bufferStackSizes[ idx ] );
            }
        }
View Full Code Here

        Stack stack = bufferStacks[ idx ];

        java.nio.ByteBuffer buf;
        synchronized( stack )
        {
            buf = ( java.nio.ByteBuffer ) stack.pop();
        }

        if( buf == null )
        {
            buf = direct ? java.nio.ByteBuffer.allocateDirect( MINIMUM_CAPACITY << idx ) :
View Full Code Here

        Stack stack = bufferStacks[ idx ];

        java.nio.ByteBuffer buf;
        synchronized( stack )
        {
            buf = ( java.nio.ByteBuffer ) stack.pop();
        }

        if( buf == null )
        {
            buf = direct ? java.nio.ByteBuffer.allocateDirect( MINIMUM_CAPACITY << idx ) :
View Full Code Here

            LeaderFollowersThreadPool.Worker worker;
            do
            {
                synchronized( followers )
                {
                    worker = ( LeaderFollowersThreadPool.Worker ) followers.pop();
                }

                if( worker == null )
                {
                    // Increase the number of threads if we
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.