Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
TestNode Struct Reference
Collaboration diagram for TestNode:
Collaboration graph

Public Member Functions

 TestNode (int value)
 

Public Attributes

std::atomic< int > data {0}
 
std::atomic< TestNode * > next {nullptr}
 

Detailed Description

Examples
hazard_pointer_sample.cpp.

Definition at line 27 of file hazard_pointer_sample.cpp.

Constructor & Destructor Documentation

◆ TestNode()

TestNode::TestNode ( int value)
inlineexplicit
Examples
hazard_pointer_sample.cpp.

Definition at line 31 of file hazard_pointer_sample.cpp.

31: data(value) {}
std::atomic< int > data

Member Data Documentation

◆ data

std::atomic<int> TestNode::data {0}
Examples
hazard_pointer_sample.cpp.

Definition at line 28 of file hazard_pointer_sample.cpp.

28{0};

◆ next

std::atomic<TestNode*> TestNode::next {nullptr}
Examples
hazard_pointer_sample.cpp.

Definition at line 29 of file hazard_pointer_sample.cpp.

29{nullptr};

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