24 Nov
2025
24 Nov
'25
7:02 a.m.
On Tue Nov 18 07:14:57 2025 +0000, Rémi Bernon wrote:
Okay, I don't have a strong opinion (although I would be very happy to get rid of non-Wine threads) and I think this MR is mostly up to @julliard appreciation. Note that __wine_dbg_get_channel_flags will call and require NtCurrentTeb() on the very first trace call, so that cannot be coming from a non-Wine thread (even if it's unlikely to be). I resurrected my patches to transform the Mac main thread into a Wine thread, and with `THREAD_CREATE_FLAGS_SKIP_LOADER_INIT` it seems to be working pretty well. I'll make this a draft until I have a conclusion there.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9503#note_123417