函数逻辑报告 |
Source Code:ipc\sem.c |
Create Date:2022-07-27 18:19:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:pdate_queue - look for tasks that can be completed.*@sma: semaphore array.*@semnum: semaphore that was modified.*@wake_q: lockless wake-queue head.* update_queue must be called after a semaphore in a semaphore array* was modified
函数原型:static int update_queue(struct sem_array *sma, int semnum, struct wake_q_head *wake_q)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct sem_array * | sma | |
int | semnum | |
struct wake_q_head * | wake_q |
934 | semop_completed等于0 |
936 | 如果semnum恒等于负1则pending_list等于pending operations |
941 | again : |
952 | 如果semnum不等于负1且current value 恒等于0则退出 |
955 | error等于perform_atomic_semop(sma, q) |
958 | 如果error大于0则继续下一循环 |
961 | unlink_queue(sma, q) |
963 | 如果error则 |
964 | restart等于0 |
965 | 否则 |
966 | semop_completed等于1 |
971 | wake_up_sem_queue_prepare(q, error, wake_q) |
975 | 返回:semop_completed |
名称 | 描述 |
---|---|
do_smart_update | do_smart_update - optimized update_queue*@sma: semaphore array*@sops: operations that were performed*@nsops: number of operations*@otime: force setting otime*@wake_q: lockless wake-queue head* do_smart_update() does the required calls to update_queue and |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |