On Thu Apr 16 04:50:34 2026 +0000, Twaik Yont wrote:
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? !9579 does this for the macOS main thread, although in !10058 there were concerns about whether the thread needs to be hidden from various APIs
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10569#note_136440