Engine → Core → job_handle.h
jobs::job_fence
| Type | Class |
| Namespace | conjure::core::jobs |
| Include File Path | engine/include/conjure/core/jobs/job_handle.h |
| Source File Path | engine/src/core/jobs/job_handle.cpp |
| API ↗ | Jobs and threading |
Syntax
Constructors
| Access | Signature | Description |
|---|---|---|
| public | job_fence() noexcept = default; |
Important
Additional constructor overloads have been deleted.
Destructors
| Access | Signature | Description |
|---|---|---|
| public | ~job_fence(); | Asserts when jobs are still pending: a batch that outlives its fence would signal freed memory. |
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| private | mCounter | detail::job_counter | {} |
Functions
Public
is_complete
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
pending[[nodiscard]] u64 pending() const noexcept;Number of jobs scheduled on this fence that have not finished yet.