Examples of returnToPool()


Examples of org.gudy.azureus2.core3.util.DirectByteBuffer.returnToPool()

        }
      }finally{
       
        if ( target_buffer_db != null ){
         
          target_buffer_db.returnToPool();
        }
      }
    }
   
    // System.out.println( "...write " + total_written );
View Full Code Here

Examples of org.gudy.azureus2.core3.util.DirectByteBuffer.returnToPool()

           
            target_access.write( raf, new DirectByteBuffer[]{ buffer }, last_piece_start );
           
          }finally{
           
            buffer.returnToPool();
          }
        }else{
         
            // no last piece, truncate after the first piece
         
View Full Code Here

Examples of org.gudy.azureus2.core3.util.DirectByteBuffer.returnToPool()

            delegate.setLength( raf, file_length );
          }
        }
      }finally{
       
        temp_buffer.returnToPool();
      }
    }else{
     
      delegate.setPieceComplete( raf, piece_number, piece_data );
    }
View Full Code Here

Examples of org.gudy.azureus2.core3.util.DirectByteBuffer.returnToPool()

           
            store_index = swap_index;

          }finally{
           
            temp_buffer.returnToPool();
          }
        }
      }
     
      setDirty();
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.PooledByteBuffer.returnToPool()

       
        handled = true;
       
      }catch( Throwable f ){
       
        buffer.returnToPool();
       
        if ( !( f instanceof MessageException )){
       
          Debug.printStackTrace(f);
        }
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.PooledByteBuffer.returnToPool()

         
        }catch( Throwable e ){
         
            // failed semantics are to not release the caller's buffer
         
          temp.returnToPool();
         
          throw( e );
        }
       
      }catch( Throwable e ){
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.PooledByteBuffer.returnToPool()

           
            buffer_handled  = true;
          }
        }catch( Throwable e ){
         
          message_to_deliver.returnToPool();
         
          if ( message_to_deliver == message ){

            buffer_handled  = true;
          }
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.PooledByteBuffer.returnToPool()

               
              }finally{
               
                if ( chunk_buffer != null ){
                 
                  chunk_buffer.returnToPool();
                }
              }
            }
           
            chunk_num++;
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.PooledByteBuffer.returnToPool()

           
          }finally{
           
            if ( buffer != null ){
             
              buffer.returnToPool();
            }
          }
        }
       
        buddyMessageSent( data.length, record_active );
View Full Code Here

Examples of org.gudy.azureus2.plugins.utils.PooledByteBuffer.returnToPool()

                       
                        sem.release();
                      }
                    }finally{
                     
                      p_buffer.returnToPool();
                    }
                  }else if ( type == DiskManagerEvent.EVENT_TYPE_FAILED ){
                 
                    error[0] = event.getFailure();
                   
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.