12 Dec
2023
12 Dec
'23
5:54 p.m.
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. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4640#note_55822