Honeycomb  0.1
Component-Model Framework
Classes | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
honey::App Class Reference

Top-level application flow controller, provides entry point and run loop. More...

#include <App.h>

Inheritance diagram for honey::App:
Inheritance graph
[legend]
Collaboration diagram for honey::App:
Collaboration graph
[legend]

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
 

Detailed Description

Top-level application flow controller, provides entry point and run loop.

Member Enumeration Documentation

enum honey::App::RunMode
strong
Enumerator
term 
run 

Constructor & Destructor Documentation

honey::App::App ( )
honey::App::~App ( )

Member Function Documentation

void honey::App::entry ( )
finalvirtual

Application entry point, call from main()

void honey::App::interrupt ( const Exception::ConstPtr &  e)

Request an interrupt in the app's thread.

void honey::App::run ( )
protectedvirtual

Module run loop.

RunMode honey::App::runMode ( ) const
inline

Member Data Documentation

int honey::App::_interruptFreq

Number of times per second to interrupt modules.

Mutex honey::App::_lock
protected
Atomic<RunMode> honey::App::_runMode
protected
Thread* honey::App::_thread
protected

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