On 2022-10-21 12:19, LIU Hao wrote:
在 2022/10/21 19:54, i.nix...@autistici.org 写道:
<skip>
Jacek Caban, who is also a mingw-w64 developer, expressed the same
idea a few days ago.
While integrating mcfgthread into gcc is practically possible, my
concerns are:
* GCC never provides a threading library. It always depends on glibc,
musl, win32 APIs, winpthreads, etc.
I think you didn't understand me.
I mean not to integrate your library into GCC as real separate library.
I mean to do changes on
config/i386/gthr-win32.h+config/i386/gthr-win32.c+config/i386/gthr-win32-cond.c
etc using your code to have an implementation of everything needed for
C/C++ threads on Windows.
* Tampering with the win32 thread model in a dramatic way is not
acceptiable due to backwards compatibility. There are distributions
that have win32 as the default thread model, such as Debian.
* I personally need more control for future development, for example,
re-implement pthread or adding libcxx support, which doesn't fit in
GCC.
got it...
anyway it seems logical to me the way I proposed :)
best!