Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
kcenon::thread::detail::lockfree_job_queue::node Struct Reference

Internal queue node structure. More...

Collaboration diagram for kcenon::thread::detail::lockfree_job_queue::node:
Collaboration graph

Public Member Functions

 node ()
 
 node (std::unique_ptr< job > &&job_data)
 

Public Attributes

std::unique_ptr< jobdata
 
std::atomic< node * > next {nullptr}
 

Detailed Description

Internal queue node structure.

Nodes use atomic pointers for lock-free traversal. Each node holds one job (or nullptr for dummy node).

Definition at line 216 of file lockfree_job_queue.h.

Constructor & Destructor Documentation

◆ node() [1/2]

kcenon::thread::detail::lockfree_job_queue::node::node ( )
inline

Definition at line 220 of file lockfree_job_queue.h.

◆ node() [2/2]

kcenon::thread::detail::lockfree_job_queue::node::node ( std::unique_ptr< job > && job_data)
inlineexplicit

Definition at line 222 of file lockfree_job_queue.h.

223 : data(std::move(job_data))
224 , next(nullptr) {}

Member Data Documentation

◆ data

◆ next


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