On 2012-12-27 8:18 PM, John E. / TDM wrote:
>...
> 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?
>...

Recent pthreads-win32 does not require the user to call startup/shutdown 
functions when statically linking the library.  I've successfully used 
it this way with your (TDM) build of MinGW. (Now, if your MinGW build 
supported <thread> it would be just about perfect.)

See new features for 2.9.1:
http://www.sourceware.org/pthreads-win32/news.html


------------------------------------------------------------------------------
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