Package org.agrona.concurrent
Class MemoryAccess
java.lang.Object
org.agrona.concurrent.MemoryAccess
Memory access operations which encapsulate the use of Unsafe.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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.
-