Gaia-ECS v1.0.0
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::mt::Job Struct Reference

Callable and scheduling options for a single job. More...

#include <jobcommon.h>

Public Attributes

JobFunc func
 Callable executed by the worker. The job owns it until the job is deleted. An automatically deleted job ends the callable's lifetime, and that of everything it captured, on the executing thread right after it runs and before the job is reported done; heap storage of a callable larger than JobFunc::InlineSize is released with the job slot right after that. A JobCreationFlags::ManualDelete job keeps its callable, so it can be reset and run again, until ThreadPool::del() destroys it.
 
JobPriority priority = JobPriority::High
 Queue priority used to schedule the callable.
 
JobCreationFlags flags = JobCreationFlags::Default
 Creation and lifetime options.
 

Detailed Description

Callable and scheduling options for a single job.


The documentation for this struct was generated from the following file: