Lines Matching refs:semid
120 static int os_createmutex(int *semid);
121 static void os_obtainmutex(int semid);
122 static void os_releasemutex(int semid);
123 static void os_destroymutex(int semid);
332 static int os_createmutex(int *semid) {
336 if (semid == NULL) {
345 *semid = retVal; /* save key of created semaphore */
347 retVal = semctl(*semid, 0, SETVAL, sem_union);
355 static void os_obtainmutex(int semid) {
362 retVal = semop(semid, &sem_b, 1);
366 static void os_releasemutex(int semid) {
373 retVal = semop(semid, &sem_b, 1);
378 static void os_destroymutex(int semid) {
382 retVal = semctl(semid, 0, IPC_RMID, sem_union);