Examples of reserve()


Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

      this_mon.exit();
    }
   
    writeTransfer( listener, target, handler_key, call_key, data, timeout );
   
    if ( call_sem.reserve( timeout )){
     
      try{
        this_mon.enter();
     
        Object  res = call_transfers.remove( wrapped_key );
View Full Code Here

Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

            }.start();
          }
         
          for (int i=0;i<num_threads;i++){
           
            sem.reserve();
          }
         
          listener.log( "Searching complete, " + ok[0] + " targets found" );
        }
      }else{
View Full Code Here

Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

           
            return( null );
          }
        });
     
      sem.reserve();
     
      if ( listener != null ){
       
        listener.resultsComplete( this );
      }
View Full Code Here

Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

          };
         
        try{
          addListener( listener );
       
          xcode_sem.reserve();
         
        }finally{
         
          removeListener( listener );
        }
View Full Code Here

Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

      };
     
    try{
      addListener( analysis_q_listener );
   
      analysis_sem.reserve();
     
    }finally{
     
      removeListener( analysis_q_listener );
    }
View Full Code Here

Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

          }.start();
        }
       
        for (int i=0;i<to_do.size();i++){
         
          sem.reserve();
        }
      }
     
      for ( String excess: existing_checked ){
       
View Full Code Here

Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

       
        while( remaining > 0 ){
       
          long wait_start = SystemTime.getMonotonousTime();

          boolean got_sem = potential_contacts_sem.reserve( 1000 );
   
          long now = SystemTime.getMonotonousTime();
         
          remaining -= ( now - wait_start );
       
View Full Code Here

Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

               }
             }
          }
        });
         
      sem.reserve();
     
      action_listener.actionComplete( result[0] );

      return( result[0] instanceof Boolean );
     
View Full Code Here

Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

                  {
                    boolean  last_preview_mode = preview_mode;
                   
                    while( !sem.isReleasedForever() && !cancelled ){
                     
                      if ( !sem.reserve( 250 )){
                     
                        if ( cancelled ){
                         
                          return;
                        }
View Full Code Here

Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

                      }
                    }
                  }
                }.start();
               
              sem.reserve();
             
              synchronized( StreamManager.this ){
               
                if ( cancelled ){
                   
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.