private void processStartupDMS() { // must be in a new thread because we don't want to block // initilization or any other add listeners AEThread2 thread = new AEThread2("v3.mw.dmAdded", true) { @Override public void run() { long startTime = SystemTime.getCurrentTime(); if (dms_Startup == null || dms_Startup.length == 0) { dms_Startup = null; return; } downloadAdded(dms_Startup, false); dms_Startup = null; System.out.println("psDMS " + (SystemTime.getCurrentTime() - startTime) + "ms"); } }; thread.setPriority(Thread.MIN_PRIORITY); thread.start(); }
public boolean isDispatchThread() { synchronized( this ){ return( thread != null && thread.isCurrentThread()); } } }
@Override public boolean isInitThread() { return( AEThread2.isOurThread( Thread.currentThread())); }
public void start() { running = true; AEThread2 runner = new AEThread2("image runner", true) { @Override public void run() { while (running) { try { renderNextImage(); Thread.sleep(SPEED); } catch (Exception e) { running = false; } } } }; runner.start(); }
@Override public void run() { while( !destroyed ){ try{ final Socket socket = server_socket.accept(); connection_speed.addValue( 1 ); new AEThread2( "TranscodePipe", true ) { @Override public void run() { handleSocket( socket ); } }.start(); }catch( Throwable e ){ if ( !destroyed ){ destroy(); } break; } } } }.start();
tasks_mon.enter(); run_now = current_thread != null && current_thread.isCurrentThread(); current_thread.start();
AEThread2.setOurThread(); pluginload.run();
@Override public long getLength( RandomAccessFile raf ) throws FMFileManagerException { try{ AEThread2.setDebug( owner ); return( raf.length()); }catch( Throwable e ){ throw( new FMFileManagerException( "getLength fails", e )); } }
AEThread2.setOurThread();
@Override public void initializationComplete() { // make sure DDB is initialised as we need it to register its // transfer types AEThread2 t = new AEThread2( "MagnetPlugin:init", true ) { @Override public void run() { delete_done.reserve(); recoverDownloads(); plugin_interface.getDistributedDatabase(); } }; t.start(); }
new AEThread2( "pu" )
AEThread2.setDebug( owner );
prevent_sleep_thread.start();
@Override public void run() { AEThread2 t = new AEThread2( "ExternalSeedInitialise", true ) { @Override public void run() { setStatus( "Running" ); plugin_interface.getDownloadManager().addListener( ExternalSeedPlugin.this); } }; t.setPriority( Thread.MIN_PRIORITY ); t.start(); } });
new AEThread2( "RCM:rems", true )
AEThread2.setDebug( owner );
if ( t != null && t.isAlive() && !t.isDaemon() && !AEThread2.isOurThread( t )){
if ( async_thread == null || !async_thread.isCurrentThread()){