ROSE  0.11.102.0
Public Types | Public Member Functions | List of all members
Rose::BinaryAnalysis::ModelChecker::Periodic Class Referenceabstract

Description

Do something periodically in another thread.

The pure virtual step method is called periodically and asynchronously until it's told to stop.

The calling thread invokes start, which creates a new thread that will call the step method. The step method is implemented in the subclasses.

Definition at line 21 of file Periodic.h.

#include <Rose/BinaryAnalysis/ModelChecker/Periodic.h>

Public Types

using Ptr = PeriodicPtr
 

Public Member Functions

void start (const EnginePtr &, std::chrono::duration< double > period)
 Creates a new thread to run periodically. More...
 
void stop ()
 Stop running periodically. More...
 
virtual void step (const EnginePtr &)=0
 The work to be done. More...
 

Member Function Documentation

void Rose::BinaryAnalysis::ModelChecker::Periodic::start ( const EnginePtr &  ,
std::chrono::duration< double >  period 
)

Creates a new thread to run periodically.

void Rose::BinaryAnalysis::ModelChecker::Periodic::stop ( )

Stop running periodically.

virtual void Rose::BinaryAnalysis::ModelChecker::Periodic::step ( const EnginePtr &  )
pure virtual

The work to be done.

This function is called periodically from the thread created by start.


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