设为首页 加入收藏

TOP

优先级反转那些事儿(五)
2023-07-23 13:26:40 】 浏览:702
Tags:那些事
    ksyn_wait_queue_t kwq = _pthread_get_thread_kwq(thread);         switch (waitinfo->wait_type) {                 case kThreadWaitPThreadMutex:                         assert((kwq->kw_type & KSYN_WQTYPE_MASK) == KSYN_WQTYPE_MTX);                         waitinfo->owner  = thread_tid(kwq->kw_owner);                         waitinfo->context = kwq->kw_addr;                         break;                 /* Owner of rwlock not stored in kernel space due to races. Punt                  * and hope that the userspace address is helpful enough. */                 case kThreadWaitPThreadRWLockRead:                 case kThreadWaitPThreadRWLockWrite:                         assert((kwq->kw_type & KSYN_WQTYPE_MASK) == KSYN_WQTYPE_RWLOCK);                         waitinfo->owner  = 0;                         waitinfo->context = kwq->kw_addr;                         break;                 /* Condvars don't have owners, so just give the userspace address. */                 case kThreadWaitPThreadCondVar:            &
首页 上一页 2 3 4 5 6 7 8 下一页 尾页 5/15/15
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇从 iOS App 启动速度看如何为基础.. 下一篇uniapp ios原生插件开发 (framewo..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目