Package org.agrona.concurrent
Class MemoryAccess
- java.lang.Object
-
- org.agrona.concurrent.MemoryAccess
-
public final class MemoryAccess extends java.lang.Object
Memory access operations which encapsulate the use of Unsafe.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
MemoryAccess()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
acquireFence()
Ensures that loads before the fence will not be reordered with loads and stores after the fence.static void
fullFence()
Ensures that loads and stores before the fence will not be reordered with loads and stores after the fence.static void
releaseFence()
Ensures that loads and stores before the fence will not be reordered with stores after the fence.
-
-
-
Method Detail
-
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.
-
-