Improved Comments in whole emulator. Finalized emulator section in docu.

This commit is contained in:
t-moe
2015-06-07 15:29:46 +02:00
parent 3e4fbab00a
commit 4b5768cedc
8 changed files with 131 additions and 146 deletions

View File

@@ -2,23 +2,23 @@
#include <QtConcurrent/QtConcurrent>
extern "C" {
//C Functions from the common folder
//Imported C Functions from the common folder
void app_init(); //Initializes the app
void app_process(); //Processes one eventloop of the app
}
void app_loop() {
while(!QApplication::closingDown()) {
app_process();
while(!QApplication::closingDown()) { //as long as the application is not terminating
app_process(); //let the application process it's events
}
}
int main(int argc, char* argv[]) {
QApplication app(argc,argv);
app_init();
QApplication app(argc,argv); //Process qt-specific commandline arguments and create event loop
app_init(); //Let the application initialize it self
QtConcurrent::run(&app_loop);
return app.exec();
QtConcurrent::run(&app_loop); //Start a thread that executes app_loop
return app.exec(); //Run the event loop until the last window is closed.
}