执行std::thread
的所有实现对于 iOS 内部包括 <pthread.h>
?
我知道不久前,this only worked with g++ and -lpthread , 但从那时起已经进行了许多升级。
最佳答案
答案是肯定的。至少在Xcode的Version 7.2 (7C68)中,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread
有unconditional
#include <pthread.h>
关于ios - iOS 上的 std::thread,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34045205/