Should I use posix threads or win32 threads with MinGW-w64?

I’m trying to build my game on Windows 7 32bit machine. I see that there are downloadable MinGW-w64 packages and would like to use those. When I’m installing MinGW, it asks whether I want “posix threads” or “win threads”.

Which one should I pick to ensure I’m compatible with the binary packages from SDL website?

Thanks.------------------------
bigosaur.com

Afaik, use posix threads if you want to use the std::thread and family api.
If you want to use the win32 native threads or something, use win threads.

From what I’ve heard the std::thread interface is (insignificantly) slower,
but personally speaking it’s great to work with so I’d go with posix
threads. But in the end it depends on your requirements.

I don’t think it really matters for SDL, they have their own threads. I
picked posix and iirc it compiled fine, fwiw.

Regards,

BobOp 8 mrt. 2015 19:19 schreef “mbabuskov” <milan.babuskov at gmail.com>:

I’m trying to build my game on Windows 7 32bit machine. I see that there
are downloadable MinGW-w64 packages and would like to use those. When I’m
installing MinGW, it asks whether I want “posix threads” or “win threads”.

Which one should I pick to ensure I’m compatible with the binary packages
from SDL website?

Thanks.


bigosaur.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Bob Rubbens wrote:

Afaik, use posix threads if you want to use the std::thread and family api. If you want to use the win32 native threads or something, use win threads.

I’m using SDL threads (SDL_CreateThread, etc.) for all my needs. Are MinGW-w64 binaries on the SDL website using std::thread or win32 native threads?

I’m trying to understand how is all this connected. Am I going to face some problems if select “posix threads” but SDL binary is compiled on a machine what uses “win32 threads” and vice versa?------------------------
bigosaur.com