在 2026-10-7 20:19, Pali Rohár 写道:
Hello, I read existing mentioned C11 thrd implementations on github,
used them as inspiration and I tried to prepare thrd_* functions for
mingw-w64 to be compatible with MSVC ABI. So not the whole C11
threads.h, just only thrd_* functions.

In the attachment mingw_c11_threads_2.patches are changes which
implements them and one of the sigfpe test which verifies that basic
functionality with C signal handlers is working.

Changes are applied on top of the changes from previous email
(mingw_c11_threads.patches) where is the threads.h and
vcruntime140_threads implementation.

What do you think about it?

Would you please hard-wrap those long lines? I don't have a favor on that; you may break it at 100 or 130 columns whatever you like, but 160 columns is really too long.


diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index c9aedafa9b2f..93b420e6301b 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -1681,6 +1693,9 @@ include lib32/Makefile.am
 if !W32API
 lib32_DATA += lib32/libglut.a lib32/libmsvcp60.a lib32/libmsvcp120_app.a
+noinst_LIBRARIES += lib32/libc11_threads.a
+lib32_libc11_threads_a_SOURCES = $(src_c11_threads)
+

This requires a `_CPPFLAGS` variable; otherwise it would use the global 
`CPPFLAGS` in a multilib build.

And likely elsewhere.



--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to