1

Do all implementations of std::thread for iOS internally include ?

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

Community
  • 1
  • 1
Alex Cohn
  • 54,176
  • 9
  • 103
  • 290

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
  • 54,176
  • 9
  • 103
  • 290