【问题标题】:Mixing boost mutexes with native threads?将boost互斥锁与本机线程混合?
【发布时间】:2013-04-01 20:23:02
【问题描述】:

我有一些使用本机线程的代码。我想修改其中的一小部分,但使用一些增强功能。特别是,我想使用 boost::mutex::scoped_lock() 和 boost::condition 的 notify() 和 wait() 函数。

将 boost 同步与非 boost 线程一起使用有什么问题吗?在 Windows 中?在 Linux 红帽? (我知道它下面是本机线程,但想问一下以确定。)

谢谢。

【问题讨论】:

  • 您应该查看boost::thread configuration & limitations 页面并了解如何调整它以避免您的应用程序使用本机线程时可能出现的特定问题。

标签: c++ multithreading pthreads mutex boost-thread


【解决方案1】:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-31
    • 2022-06-13
    • 2011-01-15
    • 1970-01-01
    相关资源
    最近更新 更多