I think he was refering to gcc's gthreads implementation ?. not sure if
it was ever used for much else than the objc compiler, it does not
support threading in C++ as far as i know.
Den 20-10-2022 kl. 05:57 skrev LIU Hao:
在 2022/10/19 23:00, Jacek Caban 写道:
Hi,
I heard that it was committed to GCC. I just want to mention for the
record that I still think it was a mistake. I also think that
obfuscating mingw-w64 with proposed changes would be a mistake.
...
If we follow that logic, we'd never change existing code or move
forward.
...
Well, I don't think that the proposed solution is clean.
The proposed solution /is/ the attempt to move things forward; but
moving forward doesn't mean it is acceptable to dance on the edge of a
knife. Something such as a threading library is much too fundamental,
which people generally shouldn't care, but if it effects ABI
incompatibility - or worse, bugs - that's gonna affect everyone, which
is totally not acceptable.
Having a freshly new thread model means, for people who are really
willing to give up compatibility with their old ecosystem, there is a
new option, and I promise to make it better; while for those who are
not, they don't get something that cease to work.
Only after the new ecosystem has been operational and stable, can
people slowly move to it, and can we drop the old thread model. It may
take a very long time (~20 years I think), or maybe will never happen.
I still don't understand why you think 'it was a mistake'. GCC never
has a thread library itself; it always relies on an external one -
glibc, musl, or Windows APIs from KERNEL32. On the other hand,
mcfgthread is not just a support library for GCC; there are C11
interfaces as well. As long-time plans it might also be possible to
add more such wrappers for Clang's libc++ or pthread, which doesn't
fit the purpose of 'GCC libraries' any more.
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public