Lines Matching refs:sem
226 exit.sem = -1;
253 if (exit.sem >= 0)
254 delete_sem(exit.sem);
372 exit.sem = create_sem(0, temp);
373 if (exit.sem < 0)
374 return exit.sem;
1189 info->sem = -1;
1201 sem_id sem = (sem_id)(addr_t)thread->wait.object;
1202 if (sem == thread->msg.read_sem)
1205 info->sem = sem;
1648 sem_id sem = (sem_id)(addr_t)thread->wait.object;
1649 if (sem == thread->msg.read_sem)
1693 sem_id sem = (sem_id)(addr_t)thread->wait.object;
1694 if (sem == thread->msg.read_sem)
1697 kprintf("sem %-*" B_PRId32,
1698 B_PRINTF_POINTER_WIDTH + 5, sem);
1794 sem_id sem = (sem_id)(addr_t)thread->wait.object;
1795 if (sem == thread->msg.read_sem)
1798 kprintf("semaphore %" B_PRId32 "\n", sem);
1843 kprintf(" exit.sem: %" B_PRId32 "\n", thread->exit.sem);
1925 sem_id sem = -1;
1937 sem = strtoul(argv[1], NULL, 0);
1938 if (sem == 0)
1966 || (sem > 0 && get_thread_wait_sem(thread) != sem)
2271 // fill all death entries and delete the sem that others will use to wait
2274 sem_id cachedExitSem = thread->exit.sem;
2279 thread->exit.sem = -1;
2520 exitSem = thread->exit.sem;
2802 "[ <sem> ]\n"
2805 " <sem> - ID of the semaphore.\n", 0);