April 15, 2026
4:51 p.m.
Is there a supported way to allocate or attach a TEB to a thread that was created via pthread_create(), instead of going through Wine’s start_thread() path? From what I can see, start_thread() expects a TEB to be passed to pthread_create(), rather than creating it itself, which doesn’t help for threads that are already running (e.g. created externally or by the JVM). Is there a way to initialize a TEB for such threads so they can use Wine logging, to simplify this logging mess? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10569#note_136321