Skip to content

ludus::foundation::threading::JobHandle

Ludus Wiki · API overview · Browse API

Struct

Value identity of one job. Copying does not retain the job.
Valid only for the graph and reset generation that created it, within one FoundationThreading runtime instance. A default-constructed handle is never valid.

Declared in modules/foundation/threading/include/ludus/foundation/threading/jobs.hpp

#include <ludus/foundation/threading/jobs.hpp>
struct ludus::foundation::threading::JobHandle

Fields

GraphId

uint64 ludus::foundation::threading::JobHandle::GraphId = 0
Graph identity, unique within this runtime; zero is never issued.

Related types: uint64

Declared in modules/foundation/threading/include/ludus/foundation/threading/jobs.hpp

Generation

uint64 ludus::foundation::threading::JobHandle::Generation = 0
Graph reset generation when the job was added.

Related types: uint64

Declared in modules/foundation/threading/include/ludus/foundation/threading/jobs.hpp

Index

uint32 ludus::foundation::threading::JobHandle::Index = 0
Job index in that generation.

Related types: uint32

Declared in modules/foundation/threading/include/ludus/foundation/threading/jobs.hpp