BluFedora Job System v1.0.0
This is a C++ job system library for use in game engines.
Job::TaskPtr Struct Reference

Public Member Functions

 TaskPtr () noexcept=default
 
 TaskPtr (WorkerID worker_id, TaskHandle task_idx) noexcept
 
 TaskPtr (std::nullptr_t) noexcept
 
bool isNull () const noexcept
 

Public Attributes

WorkerID worker_id
 
TaskHandle task_index
 

Detailed Description

Definition at line 93 of file job_system.cpp.

Constructor & Destructor Documentation

◆ TaskPtr() [1/3]

Job::TaskPtr::TaskPtr ( )
defaultnoexcept

◆ TaskPtr() [2/3]

Job::TaskPtr::TaskPtr ( WorkerID  worker_id,
TaskHandle  task_idx 
)
inlinenoexcept

Definition at line 100 of file job_system.cpp.

100 :
102 task_index{task_idx}
103 {
104 }
TaskHandle task_index
Definition: job_system.cpp:96
WorkerID worker_id
Definition: job_system.cpp:95

References worker_id.

◆ TaskPtr() [3/3]

Job::TaskPtr::TaskPtr ( std::nullptr_t  )
inlinenoexcept

Definition at line 106 of file job_system.cpp.

106 :
109 {
110 }
static constexpr TaskHandle NullTaskHandle
Definition: job_system.cpp:89

References Job::NullTaskHandle.

Member Function Documentation

◆ isNull()

bool Job::TaskPtr::isNull ( ) const
inlinenoexcept

Definition at line 112 of file job_system.cpp.

112{ return task_index == NullTaskHandle; }

References Job::NullTaskHandle, and task_index.

Member Data Documentation

◆ worker_id

WorkerID Job::TaskPtr::worker_id

Definition at line 95 of file job_system.cpp.

Referenced by TaskPtr().

◆ task_index

TaskHandle Job::TaskPtr::task_index

Definition at line 96 of file job_system.cpp.

Referenced by isNull().


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