ludus::foundation::threading::JobSystemConfig¶
Ludus Wiki · API overview · Browse API
Struct
Worker budget and optional observers for a JobSystem.
Declared in modules/foundation/threading/include/ludus/foundation/threading/jobs.hpp
#include <ludus/foundation/threading/jobs.hpp>
struct ludus::foundation::threading::JobSystemConfig
Fields¶
WorkerCount¶
uint32 ludus::foundation::threading::JobSystemConfig::WorkerCount = 0
Explicit budget, excluding the calling thread, which may help in Wait. Range 0..64.
Zero selects the serial executor, which runs every job inside Submit on the calling thread. Browser builds require zero. The engine owner must leave CPU time for simulation, driver, audio and I/O threads; logical CPU count is not a recommended value.
Related types: uint32
Declared in modules/foundation/threading/include/ludus/foundation/threading/jobs.hpp
Hooks¶
JobSystemHooks ludus::foundation::threading::JobSystemConfig::Hooks {}
Worker setup/teardown and trace hooks; none by default.
Related types: JobSystemHooks
Declared in modules/foundation/threading/include/ludus/foundation/threading/jobs.hpp