java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.ComputeQueue
- All Implemented Interfaces:
ConstJoltPhysicsObject,RefTarget,AutoCloseable,Comparable<JoltPhysicsObject>
A command queue for performing calculations on a specific
ComputeSystem.-
Method Summary
Modifier and TypeMethodDescriptionvoidExecute the command list and wait for it to finish.intCount the active references to the nativeComputeQueue.voidMark the nativeComputeQueueas embedded.toRef()Create a counted reference to the nativeComputeQueue.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Method Details
-
executeAndWait
public void executeAndWait()Execute the command list and wait for it to finish. -
getRefCount
public int getRefCount()Count the active references to the nativeComputeQueue. The queue is unaffected.- Specified by:
getRefCountin interfaceRefTarget- Returns:
- the count (≥0)
-
setEmbedded
public void setEmbedded()Mark the nativeComputeQueueas embedded.- Specified by:
setEmbeddedin interfaceRefTarget
-
toRef
Create a counted reference to the nativeComputeQueue.
-