Package org.gudy.azureus2.core3.util

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


                       
                      }else{
                       
                        Debug.out( "Message box not handled" );
                       
                        done_sem.release();
                      }
                    }
                  }
                }.start();
 
View Full Code Here


      new PluginInstallationListener()
      {
        public void
        completed()
        {
          sem.release();
        }
       
        public void
        cancelled()
        {
View Full Code Here

        failed(
          PluginException e )
        {
          error[0] = e;
         
          sem.release();
         
          if ( !wait_until_done ){
           
            Debug.out( "Install failed", e );
          }
View Full Code Here

        new AEThread2( "TiVo:CtrlListener", true )
        {
          public void
          run()
          {
            start_sem.release();
           
            long  successful_accepts   = 0;
            long  failed_accepts    = 0;
   
            while( !( manager_destroyed || search_destroyed )){
View Full Code Here

           
            AESemaphore  sem = (AESemaphore)obj;
           
            call_transfers.put( key_wrapper, value );
           
            sem.release();
           
            return( null );
          }
        }finally{
         
View Full Code Here

                {
                  transport.close( "Done" );
                 
                  result[0]   = RES_OK;

                  sem.release();
                }
 
                public void
                connectFailure(
                  Throwable failure_msg )
View Full Code Here

                  transport.close( "Proxy login failed" );
                 
                  result[0]   = RES_SOCKS_FAILED;
                  error[0= new NetworkAdminException( "Proxy connect failed", failure_msg );
                 
                  sem.release();
                }
              },
              version,
              user,
              password );
View Full Code Here

          Throwable failure_msg )
        {
          result[0]   = RES_CONNECT_FAILED;
          error[0= new NetworkAdminException( "Connect failed", failure_msg );
         
          sem.release();
        }
      };
 
      TCPNetworkManager.getSingleton().getConnectDisconnectManager().requestNewConnection(
          socks_address, connect_listener, ProtocolEndpoint.CONNECT_PRIORITY_MEDIUM );
View Full Code Here

    }catch( Throwable e ){
     
      result[0]   = RES_CONNECT_FAILED;
      error[0= new NetworkAdminException( "Connect failed", e );
     
      sem.release();
    }
   
    if ( !sem.reserve(10000)){
     
      result[0]   = RES_CONNECT_FAILED;
View Full Code Here

                  result[0] = packet.getOriginatingAddress();
                }
              }
            }finally{
             
              sem.release();
            }
          }
         
          public void
          error(
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.