|
ROSE
0.11.102.0
|
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... | |
| 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.
|
pure virtual |
The work to be done.
This function is called periodically from the thread created by start.
1.8.10