Projekt

Allgemein

Profil

Feature #744

Introduce an application class like Qt

Von Maximilian Seesslen vor etwa 11 Stunden hinzugefügt.

Status:
Neu
Priorität:
Normal
Zugewiesen an:
-
Zielversion:
-
Beginn:
20.03.2026
Abgabedatum:
% erledigt:

0%

Geschätzter Aufwand:
CS Zielversion:

Beschreibung

Initialization code can be done here and a proper event loop mechanism can be used.

class CApplication
{
   public:
   CApplication()
   {
      biwakInit();
   }
   int exec() __attribute__(( noreturn ));
};

int CApplication::exec()
{
   while(1)
   {
      CEventLoop::globalEventLoop();
      usleep_nodata(1000);
   }
   //return(0);
}

This will provide a further clean up main function.

Auch abrufbar als: Atom PDF