I'm working on getting FLTK to work on the browser. Support code here:
https://moalyousef.github.io/fltk_emscripten/I use emscripten_sleep() in the event loop. This is needed for shown dialogs and menu windows. However due to it not supporting reentrancy, I sometimes get crashes/errors when spawning a dialog or menu window.
I'm wondering if you have suggestions to work around that?
Is there a way to detect that emscripten_sleep() is currently waiting and avoiding reentrancy?
I appreciate all suggestions.
Thank you