Home > Article > Backend Development > Can I use `std::thread` with MinGW-w64 and the Win32 threading model?
When using the Win32 threading model in MinGW-w64, the availability of
No, MinGW-w64 with the Win32 threading model does not natively support
GCC, at the core of MinGW-w64, lacks built-in thread support. Typically, GCC installations rely on external libraries like gthreads or pthreads, usually provided by glibc, for threading functionality. However, MinGW-w64 does not include glibc.
To address this limitation, you can install the mingw-std-threads headers, which provide a Win32 port of pthreads. This allows you to use
The above is the detailed content of Can I use `std::thread` with MinGW-w64 and the Win32 threading model?. For more information, please follow other related articles on the PHP Chinese website!