2

C++11 introduced <thread> in its standard draft. But MingGW-4.7 doesn't support it.

Is there any attempt to implement threads based on std::thread which covers the lack of MingGW-4.7 ?

I want use it in my project and after upgrading the compiler, I'll just replace it with standard C++11 thread library by minor changes.

masoud
  • 55,379
  • 16
  • 141
  • 208

2 Answers2

2

If you want to use std::thread with MinGW, user rubenvb keeps MinGW64 builds that have std::thread in Sourceforge

Community
  • 1
  • 1
Rapptz
  • 20,807
  • 5
  • 72
  • 86
1

I'm using MinGW-builds. Choose compilers marked as 'posix-thread', they are implements C++11 multi-threading support with pthread library.