Lines Matching refs:semaphore
40 #include <mach/semaphore.h>
51 semaphore_t semaphore;
75 semaphore = (semaphore_t) kern_port->ip_kobject;
76 assert(semaphore != SEMAPHORE_NULL);
77 semaphore_reference(semaphore);
80 *semaphorep = semaphore;
87 semaphore_t semaphore = SEMAPHORE_NULL;
92 semaphore = (semaphore_t) port->ip_kobject;
93 semaphore_reference(semaphore);
98 return (semaphore);
103 convert_semaphore_to_port (semaphore_t semaphore)
107 if (semaphore == SEMAPHORE_NULL)
111 port = ipc_port_make_send(semaphore->port);
112 semaphore_dereference(semaphore);