From f89ae0b4b20758b0d2e7783a898c045546e19e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 30 Mar 2010 09:46:56 +0000 Subject: query queue sizes with [tcpclient] use [bang( with [tcpserver] use [client ( svn path=/trunk/externals/iem/iemnet/; revision=13312 --- iemnet_data.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'iemnet_data.h') diff --git a/iemnet_data.h b/iemnet_data.h index 45d1487..6124a85 100644 --- a/iemnet_data.h +++ b/iemnet_data.h @@ -105,6 +105,15 @@ t_iemnet_chunk* queue_pop_block(t_iemnet_queue* const q); * \note thread safe */ 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 * -- cgit v1.2.1