int main()
{
#if !defined(_GLIBCXX_HAS_GTHREADS)
std::cout << "glib doesn't have gthreads on my platform\n";
#endif
}
when it is defined, MinGW will support std::thread :]
I believe the reason it doesn't support threads yet is that no version of std::thread has been made that uses the win API, I don't know when they plan to implement it though.
If you use G++ under cygwin(linux..emulator? I'm hesitant saying emulator, but you get the picture) it should work.
tried your suggestion and it looks like mingw does not support std::thread at all.
andywestken:
great link! I followed the steps on the page and std::threads, std::mutex now work. However std::future and std::async are still broken.
modoran:
1. I want to play around with c++11 concurrency.
2. c++11 concurrency implementations are available on other platforms (mac, linux, etc..). only window seems to be missing it.
3. I know of boost's concurrency features.