Function report |
Source Code:ipc\sem.c |
Create Date:2022-07-28 16:43:58 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_smart_wakeup_zero - wakeup all wait for zero tasks*@sma: semaphore array*@sops: operations that were performed*@nsops: number of operations*@wake_q: lockless wake-queue head* Checks all required queue for wait-for-zero operations, based
Proto:static int do_smart_wakeup_zero(struct sem_array *sma, struct sembuf *sops, int nsops, struct wake_q_head *wake_q)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct sem_array * | sma | |
struct sembuf * | sops | |
int | nsops | |
struct wake_q_head * | wake_q |
878 | semop_completed = 0 |
879 | got_zero = 0 |
882 | If sops Then |
884 | num = semaphore index in array |
886 | If current value == 0 Then |
891 | Else |
896 | When i < . of semaphores in array cycle |
910 | Return semop_completed |
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 |
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 |
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 |