On 8/24/2010 3:24 PM, Ruben Van Boxem wrote:
> I think there needs to be some code written to link win32-pthreads to 
> the gcc std::thread API, just like OpenMP also uses win32-pthreads. Is 
> this line of thought correct?

This is correct -- and also extremely inconvenient. It would probably be 
quite simple to let the std::thread API use pthreads-w32 on Windows, but 
unfortunately this would add a direct dependency of libstdc++ on 
pthreads-w32, which has two extreme ramifications:

* Every C++ program would require the pthreads-w32 DLL to be distributed 
with it.
* Every C++ program would thereby require the entire pthreads-w32 source 
code to be distributed with it, due to clause 4 of the LGPL.

I deem it acceptable for the use of OpenMP create a dependency on 
pthreads-w32; I do *not* deem it acceptable for every C++ program to 
have that dependency.

It would be far preferable to me for someone to extend GCC to use Win32 
gthreads for std::thread.

-John E. / TDM

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to