Function report |
Source Code:ipc\sem.c |
Create Date:2022-07-28 16:43:53 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static inline int check_restart(struct sem_array *sma, struct sem_queue *q)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct sem_array * | sma | |
| struct sem_queue * | q |
| 800 | If Not list_empty - tests whether a list is empty*@head: the list to test. Then Return 1 |
| 804 | If umber of operations > 1 Then Return 1 |
| 818 | Return 0 |
| Name | Describe |
|---|---|
| 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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |