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

Function JobSystemGetContext

engine/dlib/src/dlib/jobsystem.cpp:310–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310void* JobSystemGetContext(HJobContext context, HJob hjob)
311{
312 JobThreadContext* ctx = &context->m_ThreadContext;
313 DM_MUTEX_OPTIONAL_SCOPED_LOCK(ctx->m_Mutex);
314 JobItem* item = GetJobItem(ctx, hjob);
315 if (!item)
316 return 0;
317 return item->m_Job.m_Context;
318}
319
320void* JobSystemGetData(HJobContext context, HJob hjob)
321{

Callers

nothing calls this directly

Calls 1

GetJobItemFunction · 0.85

Tested by

no test coverage detected