1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/event: add queue initialization pre-cond to event_post

Document that a queue should have been initialized before posting events
to it.
This commit is contained in:
Leandro Lanzieri 2022-04-14 17:08:42 +02:00
parent b7c68a2c69
commit d3ee32fe97
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593

View File

@ -257,6 +257,8 @@ static inline void event_queue_claim(event_queue_t *queue)
* in the previous position on the queue. So reposting an event while it is
* already on the queue will have no effect.
*
* @pre queue should be initialized
*
* @param[in] queue event queue to queue event in
* @param[in] event event to queue in event queue
*/