I'm using MinGW_W64, and I'm having trouble deciding how to move forward with the "threading" option. I can use either posix threads, or win32 threads. So far I've been using C++11's "std::thread" for my threading (which requires the posix threads option), and I really like the interface doing things this way. However, I've read from multiple sources that posix threads are significantly slower than win32 threads, and performance is a big concern for me.
My project will eventually be multi-platform, but for now my primary development machine is running Windows 7.
My question is: Are MinGW_W64's posix threads slower than the win32 threads? If so, how would I go about writing a wrapper that would let me using an std::thread-like interface but using win32 threads under the hood (or finding such a wrapper if someone's already written one)?
pthreadson windows is probablypthreads-win32which just exposes thepthreadAPI but useswin32threads under the hood. - Rapptzstd::threadspecification, and uses native threads, mutexes, condition variables, etc. I'm begging my employer to allow us to move off of VS2005/VS2010, with that being one of the reasons (that and C++11, even MS's pitiful implementation, is better than C++98 any day of the week and twice on sundays). - WhozCraig