Jolt Physics
A multi core friendly Game Physics Engine
|
#include <JobSystem.h>
Public Member Functions | |
JobHandle ()=default | |
Constructor. | |
JobHandle (const JobHandle &inHandle)=default | |
JobHandle (JobHandle &&inHandle) noexcept | |
JobHandle (Job *inJob) | |
Constructor, only to be used by JobSystem. | |
JobHandle & | operator= (const JobHandle &inHandle)=default |
Assignment. | |
JobHandle & | operator= (JobHandle &&inHandle) noexcept=default |
bool | IsValid () const |
Check if this handle contains a job. | |
bool | IsDone () const |
Check if this job has finished executing. | |
void | AddDependency (int inCount=1) const |
Add to the dependency counter. | |
void | RemoveDependency (int inCount=1) const |
Static Public Member Functions | |
static void | sRemoveDependencies (const JobHandle *inHandles, uint inNumHandles, int inCount=1) |
Remove a dependency from a batch of jobs at once, this can be more efficient than removing them one by one as it requires less locking. | |
template<uint N> | |
static void | sRemoveDependencies (StaticArray< JobHandle, N > &inHandles, int inCount=1) |
Helper function to remove dependencies on a static array of job handles. | |
A job handle contains a reference to a job. The job will be deleted as soon as there are no JobHandles. referring to the job and when it is not in the job queue / being processed.
|
inlinedefault |
Constructor.
|
inlinedefault |
|
inlinenoexcept |
|
inlineexplicit |
Constructor, only to be used by JobSystem.
|
inline |
Add to the dependency counter.
|
inline |
Check if this job has finished executing.
|
inline |
Check if this handle contains a job.
|
inline |
Remove from the dependency counter. Job will start whenever the dependency counter reaches zero and if it does it is no longer valid to call the AddDependency/RemoveDependency functions.
|
inlinestatic |
Remove a dependency from a batch of jobs at once, this can be more efficient than removing them one by one as it requires less locking.
|
inlinestatic |
Helper function to remove dependencies on a static array of job handles.