Lines Matching refs:id
24 check_sem(sem_id id)
26 if (id < 0 || id >= kSemaphoreCount)
28 return sSemaphores[id].inUse;
54 delete_sem(sem_id id)
56 if (!check_sem(id))
59 sSemaphores[id].inUse = false;
60 free(sSemaphores[id].name);
61 sSemaphores[id].name = NULL;
68 acquire_sem(sem_id id)
70 return acquire_sem_etc(id, 1, 0, 0);
75 acquire_sem_etc(sem_id id, int32 count, uint32 flags, bigtime_t timeout)
77 if (!check_sem(id))
83 semaphore &sem = sSemaphores[id];
131 release_sem(sem_id id)
133 return release_sem_etc(id, 1, 0);
138 release_sem_etc(sem_id id, int32 count, uint32 flags)
140 if (!check_sem(id))
146 semaphore &sem = sSemaphores[id];
154 get_sem_count(sem_id id, int32 *threadCount)
156 if (!check_sem(id))
162 *threadCount = sSemaphores[id].count;
168 set_sem_owner(sem_id id, team_id team)
170 if (!check_sem(id))
178 _get_sem_info(sem_id id, struct sem_info *info, size_t infoSize)
180 if (!check_sem(id))
186 info->sem = id;
188 strlcpy(info->name, sSemaphores[id].name, sizeof(info->name));
189 info->count = sSemaphores[id].count;