Export (0) Print
Expand All

Object.notifyAll Method

Releases a lock on the object that was issued by a wait method on this object.


public void notifyAll()

Called

In the current implementation of this method, there is no difference between calling a notify method and a notifyAll method.

Forms will perform an automatic notifyAll when the user closes the form or presses Apply.

The following example demonstrates usage of the notifyAll method.

public void doWork()
{
      //Do some work.

      this.setTimeOut(identifierstr(workerFunction), 0);
      this.wait(); // block and wait for notify.
}

public void workerFunction()
{
// Do some work.

//...

// Work is done. Notify an unblock.
this.notify();
}

Community Additions

ADD
Show:
© 2014 Microsoft