-
public class Fence
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumFence.Modepublic enumFence.FenceStatus
-
Field Summary
Fields Modifier and Type Field Description public final static longWAIT_FOR_EVER
-
Method Summary
Modifier and Type Method Description Fence.FenceStatuswait(@NonNull() Fence.Mode mode, long timeoutNanoSeconds)Client-side wait on the Fence.Blocks the current thread until the Fence signals. static Fence.FenceStatuswaitAndDestroy(@NonNull() Fence fence, @NonNull() Fence.Mode mode)Client-side wait on a Fence and destroy the Fence. longgetNativeObject()-
-
Method Detail
-
wait
Fence.FenceStatus wait(@NonNull() Fence.Mode mode, long timeoutNanoSeconds)
Client-side wait on the Fence.Blocks the current thread until the Fence signals.
- Parameters:
mode- Whether the command stream is flushed before waiting or not.timeoutNanoSeconds- Wait time out in nanoseconds.
-
waitAndDestroy
static Fence.FenceStatus waitAndDestroy(@NonNull() Fence fence, @NonNull() Fence.Mode mode)
Client-side wait on a Fence and destroy the Fence.
- Parameters:
fence- Fence object to wait on.mode- Whether the command stream is flushed before waiting or not.
-
getNativeObject
long getNativeObject()
-
-
-
-