L1VM - update

Jetzt entwickele ich die Version 1.4 von L1VM, mit macOS Support! Ich änderte das L1VM main thread Handling um das SDL Modul von Thread 0 zu starten! Das war nötig um L1VM auf macOS lauffähig zu machen. Der Main Thread wird als normale Funktion gestartet. Danach wird Thread 1 gestartet, der in einer Warteschleife läuft. Solange Thread 1 in der Schleife läuft, wartet die Posix Join Funktion auf das Ende. Am Programende wird eine globale Variable verwendet um die Warteschleife zu beenden. Danach wird der Posix Join Aufruf beendet und das Program endet.

Now I developing version 1.4 of L1VM, with macOS support! I needed to change the L1VM main thread handling to run the SDL module from thread 0! This was needed to make L1VM macOS ready. So now the main thread is runned as a normal function call of “run”. And I start a thread 1 which stays in a wait loop. This is needed to call posix join after that. As long as the thread 1 stays in the wait loop, the join function waits. At program exit a global variable is set to end the wait thread loop. And the posix join call now “ends” and the program exits.