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

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

Public Attributes

WorkerID worker_id
 
TaskHandle task_index
 

Detailed Description

Definition at line 90 of file job_system.cpp.

Member Function Documentation

◆ job::TaskPtr() [1/3]

job::TaskPtr::job::TaskPtr ( )
defaultnoexcept

◆ job::TaskPtr() [2/3]

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

Definition at line 97 of file job_system.cpp.

97 :
99 task_index{task_idx}
100 {
101 }
WorkerID worker_id
Definition: job_system.cpp:92
TaskHandle task_index
Definition: job_system.cpp:93

References worker_id.

◆ job::TaskPtr() [3/3]

job::TaskPtr::job::TaskPtr ( std::nullptr_t  )
inlinenoexcept

Definition at line 103 of file job_system.cpp.

103 :
106 {
107 }
static constexpr TaskHandle NullTaskHandle
Definition: job_system.cpp:86

References job::NullTaskHandle.

◆ isNull()

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

Definition at line 109 of file job_system.cpp.

109{ return task_index == NullTaskHandle; }

References job::NullTaskHandle, and task_index.

Member Data Documentation

◆ worker_id

WorkerID job::TaskPtr::worker_id

Definition at line 92 of file job_system.cpp.

Referenced by job::TaskPtr().

◆ task_index

TaskHandle job::TaskPtr::task_index

Definition at line 93 of file job_system.cpp.

Referenced by isNull().


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