Skip to content

Engine → Core → job_handle.h

jobs::job_fence

Syntax

class CONJURE_API job_fence

Constructors

AccessSignatureDescription
publicjob_fence() noexcept = default;

Important

Additional constructor overloads have been deleted.

Destructors

AccessSignatureDescription
public~job_fence();Asserts when jobs are still pending: a batch that outlives its fence would signal freed memory.

Variables

AccessNameTypeDefaultDescription
privatemCounterdetail::job_counter{}

Functions

Public

is_complete

[[nodiscard]] bool is_complete() const noexcept;

True when every job scheduled on this fence has finished executing (a fresh fence is complete).

pending

[[nodiscard]] u64 pending() const noexcept;

Number of jobs scheduled on this fence that have not finished yet.