Example usage for java.util.concurrent.atomic AtomicBoolean lazySet

List of usage examples for java.util.concurrent.atomic AtomicBoolean lazySet

Introduction

In this page you can find the example usage for java.util.concurrent.atomic AtomicBoolean lazySet.

Prototype

public final void lazySet(boolean newValue) 

Source Link

Document

Sets the value to newValue , with memory effects as specified by VarHandle#setRelease .

Usage

From source file:Main.java

public static void main(String[] argv) throws Exception {
    AtomicBoolean atomicBoolean = new AtomicBoolean();

    atomicBoolean.lazySet(true);

}