call back for event loop is ready #17049
Replies: 5 comments
-
Does this work: https://emscripten.org/docs/getting_started/FAQ.html#how-can-i-tell-when-the-page-is-fully-loaded-and-it-is-safe-to-call-compiled-functions |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot |
Beta Was this translation helpful? Give feedback.
-
In the link above there are two option and none of them can tell us that all worker threads are loaded (checked in debug):
according to #16763, we should not create a pthread inside the main, because
the onRuntimeInitialized is called before the main is called. so, the question is still relevant. |
Beta Was this translation helpful? Give feedback.
-
When you say "all worker threads are loaded", are you talking about thread in |
Beta Was this translation helpful? Give feedback.
-
yes, I mean to PTHREAD_POOL_SIZE, because some limitations, I need to avoid from doing your suggest in #16763 (comment), I thought to get over on it by such event. when I will get that event, I will execute the On_Press_UI_Buton describe here #16763 (comment) |
Beta Was this translation helpful? Give feedback.
-
Hi,
I want to initialize my App after the all worker threads are initialized and ready.
thus, the main function is not a good place for that.
document onload is also not an option, because it is called before the main function.
is there any event that I can get for that ?
Beta Was this translation helpful? Give feedback.
All reactions