Hello Kai, Bunny, Ruben, and mingw-w64 Folks!

On Mon, Jan 31, 2011 at 5:00 PM, Kai Tietz <[email protected]> wrote:
> 2011/1/31 Ruben Van Boxem <[email protected]>:
>> Op 31 jan. 2011 22:15 schreef "K. Frank" <[email protected]> het
>> volgende:
>> ...
>>> Pthreads is a good api, and people want to use it on windows
>>> independent of std::thread.  So if winpthreads is on track to become
>>> part of mingw-w64, then there is not much benefit to providing a native
>>> (i.e.,  non-pthreads) implementation of std::thread.  It would be mostly
>>> duplicative effort, and cause confusion by having two incompatible
>>> implementations.
>>>
>>> Please let me know what you think makes sense.
>>
>> Well, i don't think C++ std::thread and a C winpthread need any
>> compatibility. Maybe one implementation is more logical for gcc. I would
>> like a native windows way for llvm/clang, it's just... cleaner ;-)
>>
>> Or: could a runtime check be made to enable a specific backend at startup,
>> using Kai's code on Windows Server 2003-, and Frank's code on Vista+, with a
>> nice pthread interface as you both have now? That's the best of both world
>> IMHO...
>> ...
> ...
> So I don't see it as vain work to have native threading support in gcc
> (and libc++/libstdc++), as the pthread layer is optional and we don't
> force people to use it.

I'm happy to make the native (vista+) support for std::thread
available for integration into gcc / clang / libstdc++ / libc++, etc.,
if people think it makes sense.

I've tried to give a reasonable synopsis of what I currently have.
(It works, as far as I can tell, but I use it as an "add-on" to an
existing build of gcc -- I haven't built my own gcc distribution.)

If there is interest, let me know how we might proceed.

> Regards,
> Kai

Thanks.


K. Frank

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to