函数逻辑报告 |
Source Code:kernel\locking\mutex.c |
Create Date:2022-07-27 10:47:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Wait-Die; wake a younger waiter context (when locks held) such that it can* die.* Among waiters with context, only the first one can have other locks acquired* already (ctx->acquired > 0), because __ww_mutex_add_waiter() and
函数原型:static bool __sched __ww_mutex_die(struct mutex *lock, struct mutex_waiter *waiter, struct ww_acquire_ctx *ww_ctx)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mutex * | lock | |
struct mutex_waiter * | waiter | |
struct ww_acquire_ctx * | ww_ctx |
370 | 如果非is_wait_die则返回:false |
376 | 唤醒中断线程 |
379 | 返回:true |
名称 | 描述 |
---|---|
__ww_mutex_check_waiters | We just acquired @lock under @ww_ctx, if there are later contexts waiting* behind us on the wait-list, check if they need to die, or wound us.* See __ww_mutex_add_waiter() for the list-order construction; basically the |
__ww_mutex_add_waiter | Add @waiter to the wait-list, keep the wait-list ordered by stamp, smallest* first |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |