|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|

Public Member Functions | |
| LockFreeStack (hazard_pointer_manager &hp_mgr) | |
| ~LockFreeStack () | |
| void | push (int value) |
| bool | pop (int &result) |
Private Attributes | |
| std::atomic< TestNode * > | head_ {nullptr} |
| hazard_pointer_manager & | hp_manager_ |
Definition at line 34 of file hazard_pointer_sample.cpp.
|
inlineexplicit |
Definition at line 40 of file hazard_pointer_sample.cpp.
|
inline |
Definition at line 42 of file hazard_pointer_sample.cpp.
References head_.
|
inline |
Definition at line 58 of file hazard_pointer_sample.cpp.
References head_, and hp_manager_.
Referenced by demonstrate_concurrent_access().

|
inline |
Definition at line 49 of file hazard_pointer_sample.cpp.
References head_.
Referenced by demonstrate_concurrent_access().

|
private |
Definition at line 36 of file hazard_pointer_sample.cpp.
Referenced by pop(), push(), and ~LockFreeStack().
|
private |
Definition at line 37 of file hazard_pointer_sample.cpp.
Referenced by pop().