FileDocCategorySizeDatePackage
DiskManagerAllocationScheduler.javaAPI DocAzureus 3.0.3.41964Wed Aug 09 04:49:24 BST 2006org.gudy.azureus2.core3.disk.impl

DiskManagerAllocationScheduler

public class DiskManagerAllocationScheduler extends Object

Fields Summary
private List
instances
private org.gudy.azureus2.core3.util.AEMonitor
instance_mon
Constructors Summary
Methods Summary
protected booleangetPermission(DiskManagerHelper instance)

		
		try{
			instance_mon.enter();

			if ( instances.get(0) == instance ){
					
				return( true );
			}
			
		}finally{
			
			instance_mon.exit();
		}
					
		try{
			Thread.sleep( 250 );
				
		}catch( Throwable e ){
				
		}
		
		return( false );
	
public voidregister(DiskManagerHelper helper)

	
	
	 
	
			 
	
		try{
			instance_mon.enter();
			
			instances.add( helper );
			
		}finally{
			
			instance_mon.exit();
		}
	
protected voidunregister(DiskManagerHelper instance)

		try{
			instance_mon.enter();
			
			instances.remove( instance );
		}finally{
			
			instance_mon.exit();
		}