【问题标题】:std::thread on iOSiOS 上的 std::thread
【发布时间】:2015-12-12 04:02:10
【问题描述】:

iOS 的 std::thread 的所有实现是否在内部都包含 ?

我知道不久前,this only worked with g++ and -lpthread,但从那时起已经进行了许多升级。

【问题讨论】:

    标签: ios xcode stl pthreads


    【解决方案1】:

    答案是肯定的。至少在 Xcode 7.2 (7C68) 版本中,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread 是无条件的

    #include <pthread.h>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-15
      • 1970-01-01
      • 2020-12-21
      • 1970-01-01
      • 2014-01-10
      • 2013-07-14
      相关资源
      最近更新 更多