Class MemoryAccess

java.lang.Object
org.agrona.concurrent.MemoryAccess

public final class MemoryAccess extends Object
Memory access operations which encapsulate the use of Unsafe.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Ensures that loads before the fence will not be reordered with loads and stores after the fence.
    static void
    Ensures that loads and stores before the fence will not be reordered with loads and stores after the fence.
    static void
    Ensures that loads and stores before the fence will not be reordered with stores after the fence.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MemoryAccess

      private MemoryAccess()
  • Method Details

    • acquireFence

      public static void acquireFence()
      Ensures that loads before the fence will not be reordered with loads and stores after the fence.
    • releaseFence

      public static void releaseFence()
      Ensures that loads and stores before the fence will not be reordered with stores after the fence.
    • fullFence

      public static void fullFence()
      Ensures that loads and stores before the fence will not be reordered with loads and stores after the fence.