Projekt

Allgemein

Profil

Feature #744

Von Maximilian Seesslen vor etwa 1 Monat aktualisiert

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

<pre><code class="cpp">
class CApplication
{
public:
CApplication()
{
biwakInit();
}
int exec() __attribute__(( noreturn ));
};

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

This will provide a further clean up main function.

arenaInit() is missing then. This can be moved to CPlatformBase.

Zurück