On Tue Dec 12 13:23:26 2023 +0000, Jacek Caban wrote:
This won't work because we use `DisableThreadLibraryCalls` for jscript.dll. To avoid enabling thread library calls, you could make thread data ref-counted. I'd also consider moving thread_id from JScript struct to thread data struct and store a pointer to that in JScript struct. `script_ctx_t` could also store a pointer, which would avoid the need for getter.
Ah, good catch. Done.
I also tested them a bit now (for leaks and also with real world apps), seems to work fine.