【问题标题】:Possible to get thread owner of GMutex lock?可以获得 Gmutex 锁的线程所有者吗?
【发布时间】:2021-02-23 05:48:34
【问题描述】:

我注意到有可能获得the thread holding the mutex lock on a ptread

GMutex 也可以这样吗?我在文档中没有找到任何参考资料。

【问题讨论】:

    标签: c++ c multithreading thread-safety glib


    【解决方案1】:

    不,这是不可能的。 entire GMutex API 在这里,并且不包含获取拥有线程的方法。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-11
      • 2014-09-09
      • 2011-07-31
      • 1970-01-01
      • 2020-05-15
      • 2011-10-01
      相关资源
      最近更新 更多