gpt4 book ai didi

iphone - 由于 __psynch_mutexwait,UI 无响应

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:22:02 25 4
gpt4 key购买 nike

我的应用有时会变成dead,调用堆栈如下所示,


更新:

enter image description here

enter image description here


enter image description here

enter image description here

我用了两天,还是搞不定。

我拥有的是每个线程的上下文,以及一个特殊串行队列的保留上下文。

我想知道的是死锁是怎么来的。 为什么所有线程都处于等待状态? 只有一种可能性将不胜感激。

非常感谢。

最佳答案

在通知处理程序中工作时有时会发生这种情况,这可能会导致发送其他通知,避免这种情况的最简单方法是 dispatch_async 需要完成的工作。

dispatch_async(dispatch_get_current_queue(), ^{
// The work that needs to be done...
});

关于iphone - 由于 __psynch_mutexwait,UI 无响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16717337/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com