Example usage for org.apache.commons.lang.mutable MutableBoolean notify

List of usage examples for org.apache.commons.lang.mutable MutableBoolean notify

Introduction

In this page you can find the example usage for org.apache.commons.lang.mutable MutableBoolean notify.

Prototype

@HotSpotIntrinsicCandidate
public final native void notify();

Source Link

Document

Wakes up a single thread that is waiting on this object's monitor.

Usage

From source file:sf.net.experimaestro.scheduler.Scheduler.java

public static void notifyRunners() {
    final MutableBoolean semaphore = get().readyJobSemaphore;
    synchronized (semaphore) {
        semaphore.setValue(true);//w  ww. ja v a2s  .c  om
        semaphore.notify();
    }
}