Lines Matching refs:semaphore
23 A semaphore holds a single volatile 32-bit counter, and a static 32-bit
28 when the semaphore is created.
48 An event is similar to a semaphore with a maximum count of one. It holds
108 Create a semaphore object. Takes a pointer to struct
114 - Initial count of the semaphore.
116 - Maximum count of the semaphore.
119 On success, returns a file descriptor the created semaphore.
157 Post to a semaphore object. Takes a pointer to a 32-bit integer,
158 which on input holds the count to be added to the semaphore, and on
161 If adding to the semaphore's current count would raise the latter
162 past the semaphore's maximum count, the ioctl fails with
163 ``EOVERFLOW`` and the semaphore is not affected. If raising the
164 semaphore's count causes it to become signaled, eligible threads
165 waiting on this semaphore will be woken and the semaphore's count
218 Read the current state of a semaphore object. Takes a pointer to
224 - On output, contains the current count of the semaphore.
226 - On output, contains the maximum count of the semaphore.
320 A semaphore is considered to be signaled if its count is nonzero, and
331 signaled. If two wait operations are queued on the same semaphore,