首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >警告:已检索到TSD插槽10,但线程数据已被删除

警告:已检索到TSD插槽10,但线程数据已被删除
EN

Stack Overflow用户
提问于 2011-12-22 17:53:52
回答 1查看 887关注 0票数 1

我没有找到关于这个错误的任何东西...你知道这是从哪里来的吗?

代码语言:javascript
复制
Warning: TSD slot 10 retrieved but the thread data has already been torn down.
Warning: TSD slot 10 set but the thread data has already been torn down.

不确定如何调试此错误。不确切地知道警告发生在哪里。

我在CFPlatform.c中找到了这个

代码语言:javascript
复制
// For the use of CF and Foundation only
CF_EXPORT void *_CFGetTSD(uint32_t slot) {
    if (slot > CF_TSD_MAX_SLOTS) {
        _CFLogSimple(kCFLogLevelError, "Error: TSD slot %d out of range (get)", slot);
        HALT;
    }
    __CFTSDTable *table = __CFTSDGetTable();
    if (!table) {
        // Someone is getting TSD during thread destruction. The table is gone, so we can't get any data anymore.
        _CFLogSimple(kCFLogLevelWarning, "Warning: TSD slot %d retrieved but the thread data has already been torn down.", slot);
        return NULL;
    }
    uintptr_t *slots = (uintptr_t *)(table->data);
    return (void *)slots[slot];
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-12-29 06:33:07

答案已在此处讨论过https://devforums.apple.com/message/596383#596383

看起来UI修改尝试在不同的线程中完成。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8602140

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档