MCPcopy Create free account
hub / github.com/defold/defold / GetJobItem

Function GetJobItem

engine/dlib/src/dlib/jobsystem.cpp:113–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113static JobItem* GetJobItem(JobThreadContext* ctx, HJob hjob)
114{
115 uint32_t generation = ToGeneration(hjob);
116 uint32_t index = ToIndex(hjob);
117 JobItem* item = ctx->m_Items.GetPtr(index);
118 if (item == 0 || item->m_Generation != generation)
119 return 0;
120 return item;
121}
122
123static JobItem* CheckItem(JobThreadContext* ctx, HJob hjob)
124{

Callers 8

CheckItemFunction · 0.85
RemoveChildFromParentFunction · 0.85
JobSystemSetParentFunction · 0.85
JobSystemGetContextFunction · 0.85
JobSystemGetDataFunction · 0.85
CancelJobInternalFunction · 0.85
SelectAndPopJobFunction · 0.85
ProcessFinishedJobsFunction · 0.85

Calls 3

ToGenerationFunction · 0.85
ToIndexFunction · 0.85
GetPtrMethod · 0.80

Tested by

no test coverage detected