16 JPH_ASSERT(
old_value != cExecutingState &&
old_value != cDoneState,
"Job is running or done, it is not allowed to add a dependency to a running job");
25 mJobSystem->QueueJob(
this);
#define JPH_STACK_ALLOC(n)
Definition Core.h:479
unsigned int uint
Definition Core.h:439
#define JPH_NAMESPACE_END
Definition Core.h:367
std::uint32_t uint32
Definition Core.h:442
#define JPH_NAMESPACE_BEGIN
Definition Core.h:361
#define JPH_IF_ENABLE_ASSERTS(...)
Definition IssueReporting.h:35
#define JPH_ASSERT(...)
Definition IssueReporting.h:33
AllocateFunction Allocate
Definition Memory.cpp:59
#define JPH_PROFILE_FUNCTION()
Scope profiling for function.
Definition Profiler.h:254
Definition JobSystem.h:80
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 b...
Definition JobSystem.inl:28
A class that contains information for a single unit of work.
Definition JobSystem.h:171
bool RemoveDependency(int inCount)
Definition JobSystem.inl:13
void AddDependency(int inCount)
Add to the dependency counter.
Definition JobSystem.inl:7
static constexpr uint32 cDoneState
Value of mNumDependencies when job is done executing.
Definition JobSystem.h:275
static constexpr uint32 cExecutingState
Value of mNumDependencies when job is executing.
Definition JobSystem.h:274
void RemoveDependencyAndQueue(int inCount)
Definition JobSystem.inl:22
Definition JobSystem.h:70