std::thread 在 iOS
std::thread on iOS
iOS 的 std::thread 的所有实现是否在内部包含?
我不久前就知道了,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 的 std::thread 的所有实现是否在内部包含?
我不久前就知道了,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>