Example usage for java.lang Runnable notifyAll

List of usage examples for java.lang Runnable notifyAll

Introduction

In this page you can find the example usage for java.lang Runnable notifyAll.

Prototype

@HotSpotIntrinsicCandidate
public final native void notifyAll();

Source Link

Document

Wakes up all threads that are waiting on this object's monitor.

Usage

From source file:Main.java

public static void localNotify(Runnable runnable) {
    synchronized (runnable) {
        runnable.notifyAll();
    }
}

From source file:Main.java

public static void localNotifyAll(Runnable runnable) {
    synchronized (runnable) {
        runnable.notifyAll();
    }
}