Package gda.util

Class BusyFlag

java.lang.Object
gda.util.BusyFlag

public class BusyFlag extends Object
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 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.