Re: Support for std::thread in libstdc++
Keith Marshall <[email protected]>
| Newsgroups | gmane.comp.gnu.mingw.user |
|---|---|
| Organization | MinGW.org Project |
| Message-ID | <[email protected]> |
On 12/03/19 15:41, Eli Zaretskii wrote: > Does anyone know what happens if a program is compiled that uses this > class? Will it fail to compile, or abort at run time, or something > else? I reviewed some of our historical archives, (my own local copies); it appears that, if GCC has been built with the win32 thread model, the class definition isn't exposed, so you get a compile time failure, diagnosed as "thread is not a member of std", or some such. > I'm told that that Jonathan Wakely once wrote a port for Win32 API, > but couldn't find anyone to help him test it. Maybe there's a way to > find the patches and incorporate them into the MinGW GCC build? Once again, in my local archive[1], I found several messages from K. Frank, referring to an implementation which he had developed, (but never showing any actual code); Jonathan Wakely persistently declined to accept it, as a win32 implementation, because, as described, it either required a GCC built for the POSIX threads model, (and hence requiring linking with pthreads-win32, or winpthreads, or similar), or it used (and depended upon) WinAPI features which are unsupported prior to Vista (hence no more XP and earlier support), and which are also incompatible with the existing GCC win32 gthreads mutex implementation, which he (Jonathan) was not prepared to change. [1] I found an equivalent public copy at SF.net: https://sourceforge.net/p/mingw/mailman/mingw-users/thread/CAH6eHdT88TfHCTYd8uhqhRQgrFTQRxvNEPnRXdwzEzukirrqrg%40mail.gmail.com/#msg29242115 -- Regards, Keith. Public key available from keys.gnupg.net Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F _______________________________________________ MinGW-Users mailing list [email protected] This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.osdn.me/mailman/listinfo/mingw-users Also: mailto:[email protected]?subject=unsubscribe
signature.asc
(application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQIcBAEBAgAGBQJciC1OAAoJEMCtNsY0flo/tWcP/igHcE0XPuUomxNkGddZSQly CXDw3PBv2Zii/FBEtzC67YtHVN7EqWB2bxjzqGbGZHzC9JcxE4172uOVonFCBgN5 PN+O1jzIDZaB8+UoSt5gj59ri6VFIYRPp+XQmXNl0WYO4ySidT0Eb3mLqGTlNV+1 KrB30IuXf4Osi0162BDpi8XNWtSt/o99zGW/CztXxM3MHJITFsqUxw9EHjz3BW9S 3z4lxfKQwQ28liyW5wGZ746xlbhFinJpM5X2qzEWYv+TCfxn6mObhhMtrIG7eKwD UFb3AtVZCXhdkeNmoA4QblLlH6qD6GwsQ9B5jBm145FlX0pR+IEWq6hXuJO2O4N7 r8yn6jFLutCapvbh2ylSleTG1B6ZOLsFM52uvCv6qtQN94hEPXYXkLwaWbAOzSXa WBrnFj/0JJXu5Hv9EU2fDwtZR+CbtkNiopp6BkSFAuxA1NKU1NVvgJ6Yj3axIj0O Er7cm0t5Tv8EY5bmdTAPmHPKpox0gmdptngRt6ZQ20ABTzcY5Y3V1PJxuoliLZl+ kNrB5eKyBhlLFWjilHAO1NRJh3/fbM/sOS9gn4Pxppou3mnsd9nUHV6LiuY8RQ35 yspEWn/+agoNjJ662wmHzhPiqx18xeY12vx8w1LlqY/mPk6A1PjUpaeRyfxNr15W sASLjFn87ud5lOE6mKX4 =ko6O -----END PGP SIGNATURE-----