- Evolution was resetting the mutex somehow
for(c = app.classes.first; c && !eClass_IsDerived(c, class(GuiApplication)); c = c.next);
if(!c) c = class(GuiApplication);
+ guiApp.lockMutex.Release(); // TOCHECK: Seems the evolve is losing our mutex lock here ?
+
// Evolve the Application into it
eInstance_Evolve((Instance *)&__androidCurrentModule, c);
guiApp = (GuiApplication)__androidCurrentModule;
guiApp.SelectSkin(skin);
}
+ guiApp.lockMutex.Wait();
+
// Call Main()
((void (*)(void *))(void *)__androidCurrentModule._vTbl[12])(__androidCurrentModule);
}