Java AtomicInteger storeStoreBarrier()

Here you can find the source of storeStoreBarrier()

Description

store Store Barrier

License

Open Source License

Declaration

public static void storeStoreBarrier() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.concurrent.atomic.AtomicInteger;

public class Main {
    private static final AtomicInteger ai = new AtomicInteger();

    public static void storeStoreBarrier() {
        ai.lazySet(-1);/*from ww  w.ja  va  2 s  .  c o m*/
    }
}

Related

  1. resetCounters()
  2. resetExceptionCount()
  3. setBit(AtomicInteger i, int mask)
  4. setBitByValue(final AtomicInteger ai, final int value)
  5. setBitIfUnsetByIndex(final AtomicInteger ai, final int n)
  6. timeToId(long timeInMillis)
  7. tokenize(String string)
  8. uniqueSequenceId()
  9. waitForAll(List> futures)