Lines Matching +full:block +full:- +full:count
4 * SPDX-License-Identifier: Apache-2.0
60 * @param _initial_count Initial semaphore count.
61 * @param _count_limit Maximum permitted semaphore count.
90 * @param initial_count Initial semaphore count.
91 * @param limit Maximum permitted semaphore count.
94 * @retval -EINVAL Bad parameters, the value of limit should be located in
104 * maximum permitted count.
109 * @retval -EINVAL Parameter address not recognized.
110 * @retval -EACCES Caller does not have enough access.
111 * @retval -EAGAIN Count reached Maximum permitted count and try again.
125 * @retval -EINVAL Parameter address not recognized.
126 * @retval -ETIMEDOUT Waiting period timed out.
127 * @retval -EACCES Caller does not have enough access.
162 * @brief Leaves a code block guarded with @ref SYS_SEM_LOCK after releasing the
170 * @brief Guards a code block with the given sys_sem, automatically acquiring
171 * the semaphore before executing the code block. The semaphore will be
172 * released either when reaching the end of the code block or when leaving the
173 * block with @ref SYS_SEM_LOCK_BREAK.
192 * Behind the scenes this pattern expands to a for-loop whose body is executed
201 * @warning The code block must execute to its end or be left by calling
202 * @ref SYS_SEM_LOCK_BREAK. Otherwise, e.g. if exiting the block with a break,
205 * @param sem Semaphore (@ref sys_sem) used to guard the enclosed code block.