Hello Ruben (and Kai)!

On Mon, Jan 31, 2011 at 3:17 PM, Kai Tietz <[email protected]> wrote:
> 2011/1/31 Ruben Van Boxem <[email protected]>:
>> @Kai: I believe you were working on winpthreads. Would it be OK to integrate
>> this into libc++ or should this be part of the mingw runtime regardless and
>> be used/linked like that?
>
> I am fine, nevertheless license parts are missing in source (it will
> have ZPL 2.1 license, which is compatible to (L)GPL as fas as I know)
> and we need still some testing for it.
> We still don't have made here final decission, if winpthread will be
> fixed part of CRT, or if it will be published as separate option
> library.  For some reason I prefer variant 1, but for shared scenario
> winpthread need then some improvments, as I dislike to have many
> instances of it within one application cause by using in EXE and DLLs.

If you have pthreads working on windows under licensing terms you
find acceptable (e.g., the winpthreads project), then by far and away
the easiest way to get std::thread working on mingw32 / mingw-w64
is to use the pthreads-based implementation of std::thread that ships
already with gcc.  it works almost out of the box, requiring only very
trivial tweaks to the code.

I imagine that this would also be true for clang / libc++, although this
is pure speculation on my part.

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.

> Regards,
> Kai


Best.


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