Time Shield Library
C++ library for working with time
Loading...
Searching...
No Matches
time_shield::detail::TimerState Struct Reference

Internal state shared between Timer and TimerScheduler. More...

#include <TimerScheduler.hpp>

Public Attributes

TimerSchedulerm_scheduler = nullptr
 
std::mutex m_callback_mutex
 
TimerCallback m_callback
 
std::atomic< std::int64_t > m_interval_ms {0}
 
std::atomic< bool > m_is_single_shot {false}
 
std::atomic< bool > m_is_active {false}
 
std::atomic< bool > m_is_running {false}
 
std::size_t m_id {0}
 
std::atomic< std::uint64_t > m_generation {0}
 
std::atomic< bool > m_has_external_owner {false}
 

Detailed Description

Internal state shared between Timer and TimerScheduler.

Definition at line 44 of file TimerScheduler.hpp.

Member Data Documentation

◆ m_callback

TimerCallback time_shield::detail::TimerState::m_callback

Definition at line 47 of file TimerScheduler.hpp.

◆ m_callback_mutex

std::mutex time_shield::detail::TimerState::m_callback_mutex

Definition at line 46 of file TimerScheduler.hpp.

◆ m_generation

std::atomic<std::uint64_t> time_shield::detail::TimerState::m_generation {0}

Definition at line 53 of file TimerScheduler.hpp.

◆ m_has_external_owner

std::atomic<bool> time_shield::detail::TimerState::m_has_external_owner {false}

Definition at line 54 of file TimerScheduler.hpp.

◆ m_id

std::size_t time_shield::detail::TimerState::m_id {0}

Definition at line 52 of file TimerScheduler.hpp.

◆ m_interval_ms

std::atomic<std::int64_t> time_shield::detail::TimerState::m_interval_ms {0}

Definition at line 48 of file TimerScheduler.hpp.

◆ m_is_active

std::atomic<bool> time_shield::detail::TimerState::m_is_active {false}

Definition at line 50 of file TimerScheduler.hpp.

◆ m_is_running

std::atomic<bool> time_shield::detail::TimerState::m_is_running {false}

Definition at line 51 of file TimerScheduler.hpp.

◆ m_is_single_shot

std::atomic<bool> time_shield::detail::TimerState::m_is_single_shot {false}

Definition at line 49 of file TimerScheduler.hpp.

◆ m_scheduler

TimerScheduler* time_shield::detail::TimerState::m_scheduler = nullptr

Definition at line 45 of file TimerScheduler.hpp.


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