I install mingw-w64 on Windows, and there are two options: win32 threads and posix threads. I know what the difference is between win32 threads and pthreads, but I don't understand what is the difference between these two options. I doubt that if I select posix threads, this will prevent me from invoking WinAPI functions like CreateThread.
This parameter seems to indicate which streaming API will be used by any program or library, but what? By GCC, libstdc ++, or something else?
I found this: What is the difference between thread_posixs and thread_win32 in windows gcc port?
In short, for this version of mingw, the thread-posix release will use the posix API and allow the use of std :: thread, and thread-win32 will use the win32 API and disable std :: thread part of the standard.
Well, if I choose win32 threads, then std :: thread will not be available, but win32 threads will still be used. But is that used?
gcc windows pthreads mingw
Simon Jun 21 '13 at 19:01 2013-06-21 19:01
source share