diff options
Diffstat (limited to 'iemnet_data.h')
-rw-r--r-- | iemnet_data.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/iemnet_data.h b/iemnet_data.h index 45d1487..6124a85 100644 --- a/iemnet_data.h +++ b/iemnet_data.h @@ -106,6 +106,15 @@ t_iemnet_chunk* queue_pop_block(t_iemnet_queue* const q); */ t_iemnet_chunk* queue_pop_noblock(t_iemnet_queue* const); /** + * get size if queue + * + * \param q the queue to get the size of + * \return the fill state of the queue, -1 if something goes wrong + * + * \note thread safe + */ +int queue_getsize(t_iemnet_queue* const q); +/** * initiate cleanup process * * unblocks all blocking calls to queue_pop_block(t_iemnet_queue* const q); |