Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Is there a native pthreads implementation for mingw64?


Asked by Lennon Marsh on Dec 10, 2021 FAQ



MinGW64 also includes its own native pthreads implementation, which you may prefer to use. If you wish to build our library you will need to select the Win32 native threads option at install time. We recommend also selecting the SJLJ exception handling method for MinGW64-w32 builds.
Also,
Additionally, the Mingw-w64 project maintains winpthreads, a wrapper library similar to pthreads-win32, with the main difference that it allows GCC to use it as a threads library resulting in functional C++11 thread libraries <thread>, <future>, and <mutex> .
Subsequently, Mingw-w64 includes a port of the GNU Compiler Collection (GCC), GNU Binutils for Windows ( assembler, linker, archive manager ), a set of freely distributable Windows specific header files and static import libraries which enable the use of the Windows API, a Windows native build of the GNU Project 's GNU Debugger, and miscellaneous utilities.
Consequently,
Mingw-w64 is a free and open source software development environment to create Microsoft Windows PE applications. It was forked in 2005–2008 from MinGW (Minimalist GNU for Windows).
In addition,
MinGW (historically, MinGW32) is a toolchain used to cross-compile Windows binaries on Linux or any other OS. It can also be used natively on Windows to avoid using Visual Studio, etc. MinGW-w64 is a fork of MinGW with support for 64-bit Windows executables.