Honeycomb
0.1
Component-Model Framework
|
Top-level application flow controller, provides entry point and run loop. More...
#include <App.h>
Classes | |
struct | Terminated |
Process terminated. Use this interrupt to exit the run loop. More... | |
Public Types | |
enum | RunMode { RunMode::term, RunMode::run } |
Public Member Functions | |
App () | |
~App () | |
virtual void | entry () final |
Application entry point, call from main() More... | |
void | interrupt (const Exception::ConstPtr &e) |
Request an interrupt in the app's thread. More... | |
RunMode | runMode () const |
Public Attributes | |
int | _interruptFreq |
Number of times per second to interrupt modules. More... | |
Protected Member Functions | |
virtual void | run () |
Module run loop. More... | |
Protected Attributes | |
Thread * | _thread |
Mutex | _lock |
Atomic< RunMode > | _runMode |
Top-level application flow controller, provides entry point and run loop.
|
strong |
honey::App::App | ( | ) |
honey::App::~App | ( | ) |
|
finalvirtual |
Application entry point, call from main()
void honey::App::interrupt | ( | const Exception::ConstPtr & | e | ) |
Request an interrupt in the app's thread.
|
protectedvirtual |
Module run loop.
|
inline |
int honey::App::_interruptFreq |
Number of times per second to interrupt modules.
|
protected |
|
protected |