Skip to content

Commit 7d0e6f5

Browse files
committed
Add corrections to libs/event/event.h comments
1 parent 030e87e commit 7d0e6f5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libs/event/event.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ struct am_event *am_event_allocate_x(int id, int size, int margin);
231231
* The event is allocated from one of the memory pools provided
232232
* with am_event_add_pool() function.
233233
*
234-
* The function asserts if there is no memory left to accommodate the event.
234+
* The function asserts, if there is no memory left to accommodate the event.
235235
*
236236
* Thread safe.
237237
*
@@ -243,7 +243,10 @@ struct am_event *am_event_allocate_x(int id, int size, int margin);
243243
struct am_event *am_event_allocate(int id, int size);
244244

245245
/**
246-
* Try to free the event allocated earlier with am_event_allocate().
246+
* Try to free the event.
247+
*
248+
* The event is either static or allocated earlier with
249+
* am_event_allocate(), am_event_dup() or am_event_dup_x() API calls.
247250
*
248251
* Decrements event reference counter by one and frees the event,
249252
* if the reference counter drops to zero.

0 commit comments

Comments
 (0)