Lines Matching +full:block +full:- +full:count
21 * A **count** that indicates the number of times the semaphore can be taken.
22 A count of zero indicates that the semaphore is unavailable.
24 * A **limit** that indicates the maximum value the semaphore's count
27 A semaphore must be initialized before it can be used. Its count must be set
28 to a non-negative value that is less than or equal to its limit.
31 increments its count, unless the count is already equal to the limit.
34 decrements its count, unless the semaphore is unavailable (i.e. at zero).
41 You may initialize a "full" semaphore (count equal to limit) to limit the number
43 initialize an empty semaphore (count equal to 0, with a limit greater than 0)
61 semaphore by setting its count to 0 and its limit to 1.
63 .. code-block:: c
74 .. code-block:: c
86 .. code-block:: c
105 .. code-block:: c