Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::comms::can::WatchCallMessageProcessorFrame Class Referencefinal
Inheritance diagram for iv::comms::can::WatchCallMessageProcessorFrame:
[legend]
Collaboration diagram for iv::comms::can::WatchCallMessageProcessorFrame:
[legend]

Public Types

enum class  eRunnableState {
  Init , Running , Paused , WaitingForEnd ,
  Stopped
}
 

Public Member Functions

 WatchCallMessageProcessorFrame (WatchCallMessageProcessor *processor, const iv::types::pollTime sleepMs=std::chrono::milliseconds(200))
 
void periodicTask () override
 
bool isRunning () override
 
bool isPaused () override
 
bool isStopped () override
 
void run () override
 
void pause () override
 
void resume () override
 
void stop () override
 
void setTaskName (const std::string_view taskName)
 

Public Attributes

WatchCallMessageProcessorm_processor
 

Protected Member Functions

void sleepFrame (iv::types::pollTime milliseconds)
 

Protected Attributes

std::string_view m_taskName
 

Private Member Functions

void runFrame () override
 

Private Attributes

iv::types::pollTime m_sleepMs
 
std::mutex m_mutex
 
std::condition_variable m_cv
 
std::atomic< IRunnable::eRunnableState > m_stateThread
 
std::weak_ptr< bool > m_isEnabled
 

Member Enumeration Documentation

◆ eRunnableState

enum class iv::threads::IRunnable::eRunnableState
stronginherited
Enumerator
Init 
Running 
Paused 
WaitingForEnd 
Stopped 

Constructor & Destructor Documentation

◆ WatchCallMessageProcessorFrame()

iv::comms::can::WatchCallMessageProcessorFrame::WatchCallMessageProcessorFrame ( WatchCallMessageProcessor * processor,
const iv::types::pollTime sleepMs = std::chrono::milliseconds(200) )
inlineexplicit

Member Function Documentation

◆ isPaused()

bool iv::threads::ThreadRunnable::isPaused ( )
overridevirtualinherited

◆ isRunning()

bool iv::threads::ThreadRunnable::isRunning ( )
overridevirtualinherited

◆ isStopped()

bool iv::threads::ThreadRunnable::isStopped ( )
overridevirtualinherited

◆ pause()

void iv::threads::ThreadRunnable::pause ( )
overridevirtualinherited

◆ periodicTask()

void iv::comms::can::WatchCallMessageProcessorFrame::periodicTask ( )
inlineoverridevirtual

◆ resume()

void iv::threads::ThreadRunnable::resume ( )
overridevirtualinherited

◆ run()

void iv::threads::ThreadRunnable::run ( )
overridevirtualinherited

◆ runFrame()

void iv::threads::ThreadRunnablePeriodic::runFrame ( )
inlineoverrideprivatevirtualinherited

◆ setTaskName()

void iv::threads::IRunnable::setTaskName ( const std::string_view taskName)
inlineinherited

◆ sleepFrame()

void iv::threads::ThreadRunnable::sleepFrame ( iv::types::pollTime milliseconds)
protectedinherited

◆ stop()

void iv::threads::ThreadRunnable::stop ( )
overridevirtualinherited

Member Data Documentation

◆ m_cv

std::condition_variable iv::threads::ThreadRunnable::m_cv
privateinherited

◆ m_isEnabled

std::weak_ptr<bool> iv::threads::ThreadRunnable::m_isEnabled
privateinherited

◆ m_mutex

std::mutex iv::threads::ThreadRunnable::m_mutex
privateinherited

◆ m_processor

WatchCallMessageProcessor* iv::comms::can::WatchCallMessageProcessorFrame::m_processor

◆ m_sleepMs

iv::types::pollTime iv::threads::ThreadRunnablePeriodic::m_sleepMs
privateinherited

◆ m_stateThread

std::atomic<IRunnable::eRunnableState> iv::threads::ThreadRunnable::m_stateThread
privateinherited

◆ m_taskName

std::string_view iv::threads::IRunnable::m_taskName
protectedinherited

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