【发布时间】:2015-12-12 04:02:10
【问题描述】:
iOS 的 std::thread 的所有实现是否在内部都包含 ?
我知道不久前,this only worked with g++ and -lpthread,但从那时起已经进行了许多升级。
【问题讨论】:
iOS 的 std::thread 的所有实现是否在内部都包含 ?
我知道不久前,this only worked with g++ and -lpthread,但从那时起已经进行了许多升级。
【问题讨论】:
答案是肯定的。至少在 Xcode 7.2 (7C68) 版本中,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread 是无条件的
#include <pthread.h>
【讨论】: