Package gda.util
Class BusyFlag
java.lang.Object
gda.util.BusyFlag
Class to allow several Threads to access the same object without interfering with one another and without using
sychronization. An example of its use can be found in AsynchronousReaderWriter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCall this to free the BusyFlag.voidCall this to become the BusyFlag owner.
-
Constructor Details
-
BusyFlag
public BusyFlag()
-
-
Method Details
-
getBusyFlag
public void getBusyFlag()Call this to become the BusyFlag owner. If some other thread is the BusyFlag owner this will wait() indefinitely. -
freeBusyFlag
public void freeBusyFlag()Call this to free the BusyFlag. Other threads waiting on this are notified.
-