Hello Ruben -

On Mon, Aug 23, 2010 at 5:21 PM, Ruben Van Boxem
<[email protected]> wrote:
> ...
> Is there a possibility to get a GCC 4.5.x build with lto enabled (and
> perhapd std::thread stuff via pthread-win32)?

I can't give a definitive answer to your std::thread question, but my
belief is no.

I looked into this with mingw (rather than mingw-w64), and gcc 4.5
does come with the std::thread library:

   ...\lib\gcc\mingw32\4.5.0\include\c++\thread

but in the mingw distribution, it is disabled by an #ifdef wrapper

   #if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1)

because _GLIBCXX_HAS_GTHREADS is not defined

My speculation is that gcc's std::thread is implemented using
something called "GTHREADS" that is not (not yet?) available
with mingw, rather than posix pthreads (which are available with
mingw.)

(I haven't looked at this in version 4.6.)

>
> I would love to experiment with this functionality.

I would too.

> Thanks

Good luck.


K. Frank

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