Skip to content

Commit

Permalink
kernel: events: fix doc typo and remove empty lines
Browse files Browse the repository at this point in the history
event_wait_all waits for *all* of the specified events, as the name
suggests.

Signed-off-by: Martin Jäger <[email protected]>
  • Loading branch information
martinjaeger authored and nashif committed Dec 2, 2022
1 parent fa738b0 commit 58ece9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/zephyr/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -2123,7 +2123,7 @@ __syscall void k_event_post(struct k_event *event, uint32_t events);
* events tracked by the event object.
*
* @param event Address of the event object
* @param events Set of events to post to @a event
* @param events Set of events to set in @a event
*/
__syscall void k_event_set(struct k_event *event, uint32_t events);

Expand All @@ -2136,7 +2136,7 @@ __syscall void k_event_set(struct k_event *event, uint32_t events);
* allows specific event bits to be set and cleared as determined by the mask.
*
* @param event Address of the event object
* @param events Set of events to post to @a event
* @param events Set of events to set/clear in @a event
* @param events_mask Mask to be applied to @a events
*/
__syscall void k_event_set_masked(struct k_event *event, uint32_t events,
Expand Down Expand Up @@ -2167,7 +2167,7 @@ __syscall uint32_t k_event_wait(struct k_event *event, uint32_t events,
bool reset, k_timeout_t timeout);

/**
* @brief Wait for any of the specified events
* @brief Wait for all of the specified events
*
* This routine waits on event object @a event until all of the specified
* events have been delivered to the event object, or the maximum wait time
Expand Down
2 changes: 0 additions & 2 deletions kernel/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ static void k_event_post_internal(struct k_event *event, uint32_t events,
thread->next_event_link = head;
head = thread;
}


}

if (head != NULL) {
Expand Down

0 comments on commit 58ece9d

Please sign in to comment.