[PATCH 0/2] MR89: Use +threadname channel for thread names.

Alexandre Julliard (@julliard) wine at gitlab.winehq.org
Wed Jun 1 14:38:23 CDT 2022


Alexandre Julliard (@julliard) commented about dlls/kernelbase/thread.c:
>      THREAD_NAME_INFORMATION info;
>      int length;
>  
> -    TRACE( "(%p, %s)\n", thread, debugstr_w( description ));
> +    if (thread == GetCurrentThread())
> +        WARN_(threadname)( "Thread renamed to %s\n", debugstr_w( description ));
> +    else
> +        WARN_(threadname)( "Thread handle %p renamed to %s\n", thread, debugstr_w( description ));
Printing the handle value is not very useful, it would be nicer to get the thread id from the handle if we can.

-- 
https://gitlab.winehq.org/wine/wine/-/merge_requests/89#note_1478



More information about the wine-devel mailing list