On Friday 16 January 2026 10:36:17 LIU Hao wrote: > 在 2026-1-15 22:54, Martin Storsjö 写道: > > On Sat, 20 Dec 2025, Pali Rohár wrote: > > > > > Per MS documentation [1] the SetThreadDescription function should be > > > called > > > from the kernel32.dll library and not from the kernelbase.dll library. > > > > > > [1] - > > > https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi- > > > setthreaddescription > > > --- > > > mingw-w64-libraries/winpthreads/src/misc.c | 10 +++------- > > > 1 file changed, 3 insertions(+), 7 deletions(-) > > > > There may still be reasons for wanting to load this from kernelbase.dll > > - see https://code.ffmpeg.org/ > > FFmpeg/FFmpeg/commit/1f4fed5cc3be0737305e342f753c42716d6bf432 > > > > // Although SetThreadDescription lives in kernel32.dll, on Windows > > Server 2016, > > // Windows 10 LTSB 2016 and Windows 10 version 1607, it was only > > available in > > // kernelbase.dll. So, load it from there for maximum coverage. > > Oh thanks for the information. I will revert this once the CI passes.
Thanks for information. I think that similar comment we can add also into winpthreads source code, so other people would not be surprise that it is really needed. _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
