kernel: Remove traces of semaphore groups from public APIs
Change-Id: I68fa6d4c835e1df4b613bf4059fa8d28801b4ebf Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
parent
5a7a86cb7f
commit
a543d956ba
2 changed files with 47 additions and 49 deletions
|
@ -1357,55 +1357,6 @@ static inline unsigned int k_sem_count_get(struct k_sem *sem)
|
|||
return sem->count;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SEMAPHORE_GROUPS
|
||||
/**
|
||||
* @brief Take the first available semaphore
|
||||
*
|
||||
* Given a list of semaphore pointers, this routine will attempt to take one
|
||||
* of them, waiting up to a maximum of @a timeout ms to do so. The taken
|
||||
* semaphore is identified by @a sem (set to NULL on error).
|
||||
*
|
||||
* Be aware that the more semaphores specified in the group, the more stack
|
||||
* space is required by the waiting thread.
|
||||
*
|
||||
* @param sem_array Array of semaphore pointers terminated by a K_END entry
|
||||
* @param sem Identifies the semaphore that was taken
|
||||
* @param timeout Number of milliseconds to wait if semaphores are unavailable,
|
||||
* or one of the special values K_NO_WAIT and K_FOREVER.
|
||||
*
|
||||
* @retval 0 A semaphore was successfully taken
|
||||
* @retval -EBUSY No semaphore was available (@a timeout = K_NO_WAIT)
|
||||
* @retval -EAGAIN Time out occurred while waiting for semaphore
|
||||
*/
|
||||
|
||||
extern int k_sem_group_take(struct k_sem *sem_array[], struct k_sem **sem,
|
||||
int32_t timeout);
|
||||
|
||||
/**
|
||||
* @brief Give all the semaphores in the group
|
||||
*
|
||||
* This routine will give each semaphore in the array of semaphore pointers.
|
||||
*
|
||||
* @param sem_array Array of semaphore pointers terminated by a K_END entry
|
||||
*
|
||||
* @return N/A
|
||||
*/
|
||||
extern void k_sem_group_give(struct k_sem *sem_array[]);
|
||||
|
||||
/**
|
||||
* @brief Reset the count to zero on each semaphore in the array
|
||||
*
|
||||
* This routine resets the count of each semaphore in the group to zero.
|
||||
* Note that it does NOT have any impact on any thread that might have
|
||||
* been previously pending on any of the semaphores.
|
||||
*
|
||||
* @param sem_array Array of semaphore pointers terminated by a K_END entry
|
||||
*
|
||||
* @return N/A
|
||||
*/
|
||||
extern void k_sem_group_reset(struct k_sem *sem_array[]);
|
||||
#endif
|
||||
|
||||
#define K_SEM_INITIALIZER(obj, initial_count, count_limit) \
|
||||
{ \
|
||||
.wait_q = SYS_DLIST_STATIC_INIT(&obj.wait_q), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue