On 12/27/2012 2:06 AM, Kai Tietz wrote:
> Well, in general we won't have POSIX-threading model for
> Windows-gcc-versions activated by default.  As this feature implies
> that gcc's additional libraries (libgcc, libstdc++, libgfortran, etc)
> would have dependencies to the posix-threading-library.  Later might
> be acceptable for people playing with C(++)11-features, but for
> general purpose-usage this isn't suitable.  So as Ruben mentioned
> "experimental" means here "experimental" and not "productive".
*snip*
> Don't be afraid that we will introduce new DLL-depencies.  We won't
> add posix-thread-layer via a DLL into our runtime/startup.
> Nevertheless we will provide to users ability to use all C11/C++11
> features, if they want to use them.  But people not using those new
> features, won't have direct changes in behavior.

I think in the long run, the goal should be to provide a compiler 
supporting all C++11 features by default. For purposes of std::thread & 
co., the choice of distributing an additional pthreads layer library, or 
writing additional Windows-based functionality for libstdc++, is of 
course up to you, Kai, and other GCC developers.

My preference, as always, is to minimize the number of additional 
libraries GCC's developer-users are required to redistribute. However, 
it seems fairly trivial to me to link winpthreads into the libstdc++ 
DLL, and I would recommend that as a reasonable default action.

In the vein of static linkage, however, I do have one observation and a 
related question. The pthreads-w32 library has startup code that is 
executed when the DLL is attached, and therefore when the library is 
statically linked, the user must call startup and shutdown functions. 
Does winpthreads have the same requirement?

Thanks,
John E. / TDM

------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to