Package com.github.stephengold.joltjni
Class JobSystemSingleThreaded
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.JobSystem
com.github.stephengold.joltjni.JobSystemSingleThreaded
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
A sample implementation of
JobSystem
without threads. It runs jobs as
soon as they are added.-
Constructor Summary
ConstructorsConstructorDescriptionJobSystemSingleThreaded
(int maxJobs) Instantiate a job system with the specified limit. -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.JobSystem
getMaxConcurrency
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
JobSystemSingleThreaded
public JobSystemSingleThreaded(int maxJobs) Instantiate a job system with the specified limit.- Parameters:
maxJobs
- the maximum number of jobs that can be allocated at one time (>1)- See Also:
-