Martin Storsjö <[email protected]> wrote: >On Sun, 4 Oct 2026, Pali Rohár wrote: > >> I think that for future, mingw-w64 could provide own implementations of >> C11 threads.h functions (for static linking) compatible with the msvc >> runtime functions. I have checked if there is a wine implementation or >> documentation, but wine project has not documented this yet. > > Yes, having something of our own would feel more in the right direction.
While I don't oppose idea of mingw-64 providing C11 threading support, I think we should not provide them in the same way as other replacements/emulations - static functions in import libraries. My main concern is ABI stability. Each binary (EXE or DLL) will have their own statically linked implementation. If we ever change ABI or even an internal structure pointed to by handle-like objects, we will ultimately introduce breakages in cases such objects were passed across different binaries. Also, we might need to keep track of some internal state. If mingw-w64 were to implement C11 threading, I think it should be a separate library, so it can be used as a DLL. - Kirill Makurin _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
