FileDocCategorySizeDatePackage
BusyFlag1.javaAPI DocExample1718Thu Feb 04 16:10:36 GMT 1999None

BusyFlag1

public class BusyFlag1 extends Object

Fields Summary
protected Thread
busyflag
Constructors Summary
Methods Summary
public voidfreeBusyFlag()

		if (busyflag == Thread.currentThread()) {
			busyflag = null;
		}
	
public voidgetBusyFlag()


	    
		while (busyflag != Thread.currentThread()) {
			if (busyflag == null)
				busyflag = Thread.currentThread();
			try {
				Thread.sleep(100);
			} catch (Exception e) {}
		}