From: K. F. <kfr...@gm...> - 2010-06-02 01:19:15
|
Hello Keith and List - On Tue, Jun 1, 2010 at 3:46 PM, Keith Marshall <kei...@us...> wrote: > On Tuesday 01 June 2010 16:25:34 K. Frank wrote: >> What precisely is mingw32-pthreads-w32 (mentioned in my original >> posting)? Is it the same as the pthreads-win32 you mention, but >> maybe "certified for use" with mingw32? > > They are one and the same. We repackage our own build, from upstream > sources (unmodified), simply to honour our obligations under the GPL, > because our GCC-4.5 requires POSIX threads support. Our package name > differs from upstream, because it must comply with the conventions we > have adopted for mingw-get's dependency resolver. In a previous posting I asked: Would anybody know if g++ -std=c++0x will give me decent thread support with mingw? (I'm currently using g++ version 4.4.1. What if I upgrade to version 4.5?) It appears that linux version of g++ 4.4 supports threads, but the mingw version doesn't. For example, see: http://www.eggheadcafe.com/software/aspnet/35840730/summary-of-c0x-feature.aspx A little odd: "#include <thread>" compiles (with -std=c++0x), but "std::thread t;" doesn't. The guts of the header file "thread' are protected by: #if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1) You say "our GCC-4.5 requires POSIX threads support." Does that mean that GCC-4.5 uses threads when it runs or that it knows how to compile code that uses threads? If the latter, would that be enough to turn on the std::thread functionality? That is (more directly), will upgrading to mingw g++ 4.5 give me std::thread (using -std=c++0x)? > Regards, > Keith. Thanks. K. Frank |