函数逻辑报告 | 
Source Code:ipc\sem.c | 
Create Date:2022-07-27 18:19:07 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:heck_restart(sma, q)*@sma: semaphore array*@q: the operation that just completed* update_queue is O(N^2) when it restarts scanning the whole queue of* waiting operations. Therefore this function checks if the restart is* really necessary
函数原型:static inline int check_restart(struct sem_array *sma, struct sem_queue *q)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct sem_array * | sma | |
| struct sem_queue * | q | 
| 800 | 如果非链表为空则返回:1 | 
| 804 | 如果umber of operations 大于1则返回:1 | 
| 818 | 返回:0 | 
| 名称 | 描述 | 
|---|---|
| update_queue | 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 | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |