1

Do all implementations of std::thread for iOS internally include <pthread.h>?

I know that some while ago, this only worked with g++ and -lpthread, but many upgrades have arrived since then.

Alex Cohn
  • 56,089
  • 9
  • 113
  • 307

1 Answers1

1

The answer is positive. At least in Version 7.2 (7C68) of Xcode, /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread has unconditional

#include <pthread.h>
Alex Cohn
  • 56,089
  • 9
  • 113
  • 307