#include <JobContext.h>
Public Member Functions | |
| AZ_CLASS_ALLOCATOR (JobContext, ThreadPoolAllocator) | |
| JobContext (JobManager &jobManager) | |
| JobContext (JobManager &jobManager, JobCancelGroup &cancelGroup) | |
| JobContext (const JobContext &rhs) | |
| JobContext & | operator= (const JobContext &)=delete |
| JobManager & | GetJobManager () const |
| void | SetCancelGroup (JobCancelGroup *cancelGroup) |
| JobCancelGroup * | GetCancelGroup () const |
Static Public Member Functions | |
| static void | SetGlobalContext (JobContext *context) |
| static JobContext * | GetGlobalContext () |
| static JobContext * | GetParentContext () |
A job context stores information about the execution environment of jobs, a single context should be shared between many jobs.
|
static |
Gets the context of the currently processing job, or the global context if this is a top-level job. Note that this requires a global context to have been set, and only returns the current job from that context, if there are other JobManagers they are not used.
|
inline |
Call this only before jobs using this context have been created, it is not threadsafe.
|
static |
Sets the global job context, this is what will be used when creating a top-level job without specifying the context explicitly.