2010/8/25 Ruben Van Boxem <[email protected]>:
> I guess this mailing list is as good a place as any to start this
> discussion.
>
> Eventually it will boil down to someone writing the hard code (as I am not
> near capable enough). I can, though, get some info and gather docs for a
> willing party.
>
> The thing is: GCC 4.4+ has provided std::thread for POSIX platforms, making
> for a very easy way of using multithreading in c++, using the upcoming
> standard (which is now falsely named C++0x, like it's not 2010 yet ;) ).
> Mingw is falling behind, because this low-level thing needs a
> platform-dependent implementation. As John E. already mentioned, using
> pthread-w32 is not a good choice. Easy, but sloppy.
>
> Therefore I hope a person with enough c++ and win32 threading knowledge will
> implement it through native win32 threads. I have already gotten some info
> and docs ready:
>
> 1. boost::thread is probably quite like std::thread, as is almost 40% of the
> new standard:
> http://live.boost.org/doc/libs/1_35_0/boost/thread/win32/thread.hpp
> 2. pthread implementation of the GCC gthreads used as a backend for
> std::thread: http://gcc.gnu.org/ml/libstdc++/2008-08/txt00033.txt
> 3. MSDN win32 threading API, which I hope isn't to crappy to be wrapped by
> std::thread:
> http://msdn.microsoft.com/en-us/library/ms684254%28v=VS.85%29.aspx
> 4. A paid implementation of std::thread, just::thread, which will probably
> not provide anything helpful: http://www.stdthread.co.uk/
>
> This is an exciting new feature, and I would hate MinGW to get behind.

Yes, I would prefer here a native win32 API variant for threads, as
the dependency to pthread for c++ isn't in all cases the best
solution. Also it seems to me that the abilities of c++0x are limited
and so a native win32 implementation should work.

> Ruben
>
> PS: in an extension, perhaps OpenMP can be rewritten to also use
> std::thread, once available, to drop even that pthread dependency.
>

We have patches for OpenMP pending (Doug Semler has here prepared
patches for this). It implements for mingw the threading by win32 API.
He just waits that paper work for FSF gets completed. I hope this will
happen before 4.6 gets released.

Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

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