Improved Comments in whole emulator. Finalized emulator section in docu.
This commit is contained in:
@@ -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.
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user