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

Public Attributes

std::atomic< bool > is_cancelled {false}
 
std::optional< cancellation_reasonreason
 
std::unordered_map< callback_handle, callback_typesimple_callbacks
 
std::unordered_map< callback_handle, callback_with_reason_typereason_callbacks
 
std::atomic< callback_handlenext_handle {1}
 
std::chrono::steady_clock::time_point deadline_point
 
std::atomic< bool > has_deadline {false}
 
std::mutex mutex
 
std::condition_variable cv
 
std::atomic< bool > timer_active {false}
 
std::atomic< bool > timer_should_stop {false}
 

Detailed Description

Definition at line 15 of file enhanced_cancellation_token.cpp.

Member Data Documentation

◆ cv

std::condition_variable kcenon::thread::enhanced_cancellation_token::state::cv
mutable

Definition at line 30 of file enhanced_cancellation_token.cpp.

◆ deadline_point

std::chrono::steady_clock::time_point kcenon::thread::enhanced_cancellation_token::state::deadline_point
Initial value:
{
std::chrono::steady_clock::time_point::max()}

Definition at line 25 of file enhanced_cancellation_token.cpp.

25 {
26 std::chrono::steady_clock::time_point::max()};

◆ has_deadline

std::atomic<bool> kcenon::thread::enhanced_cancellation_token::state::has_deadline {false}

Definition at line 27 of file enhanced_cancellation_token.cpp.

27{false};

◆ is_cancelled

std::atomic<bool> kcenon::thread::enhanced_cancellation_token::state::is_cancelled {false}

Definition at line 17 of file enhanced_cancellation_token.cpp.

17{false};

◆ mutex

std::mutex kcenon::thread::enhanced_cancellation_token::state::mutex
mutable

Definition at line 29 of file enhanced_cancellation_token.cpp.

◆ next_handle

std::atomic<callback_handle> kcenon::thread::enhanced_cancellation_token::state::next_handle {1}

Definition at line 23 of file enhanced_cancellation_token.cpp.

23{1};

◆ reason

std::optional<cancellation_reason> kcenon::thread::enhanced_cancellation_token::state::reason

Definition at line 18 of file enhanced_cancellation_token.cpp.

◆ reason_callbacks

std::unordered_map<callback_handle, callback_with_reason_type> kcenon::thread::enhanced_cancellation_token::state::reason_callbacks

Definition at line 22 of file enhanced_cancellation_token.cpp.

◆ simple_callbacks

std::unordered_map<callback_handle, callback_type> kcenon::thread::enhanced_cancellation_token::state::simple_callbacks

Definition at line 20 of file enhanced_cancellation_token.cpp.

◆ timer_active

std::atomic<bool> kcenon::thread::enhanced_cancellation_token::state::timer_active {false}

Definition at line 32 of file enhanced_cancellation_token.cpp.

32{false};

◆ timer_should_stop

std::atomic<bool> kcenon::thread::enhanced_cancellation_token::state::timer_should_stop {false}

Definition at line 33 of file enhanced_cancellation_token.cpp.

33{false};

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