From 53be630637ecf6f50729790837778e355c0b1485 Mon Sep 17 00:00:00 2001 From: int_szyk Date: Mon, 16 Sep 2019 14:21:52 +0200 Subject: [PATCH] Expand documentation of equeue --- events/equeue.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/events/equeue.h b/events/equeue.h index 7c3dfbea54..5d452fc504 100644 --- a/events/equeue.h +++ b/events/equeue.h @@ -93,6 +93,9 @@ typedef struct equeue { // // If the event queue creation fails, equeue_create returns a negative, // platform-specific error code. +// +// If queues are chained, it is needed to unchain them first, before calling destroy, +// or call the destroy function on queues in order that chained queues are destroyed first. int equeue_create(equeue_t *queue, size_t size); int equeue_create_inplace(equeue_t *queue, size_t size, void *buffer); void equeue_destroy(equeue_t *queue);