aboutsummaryrefslogtreecommitdiff
path: root/iemnet_data.h
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-03-30 09:46:56 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2010-03-30 09:46:56 +0000
commitf89ae0b4b20758b0d2e7783a898c045546e19e34 (patch)
treea699c3450e9ea905d4de63c86ce1dbdfbb46683d /iemnet_data.h
parentc4836ce4a969a6493606fe1c136d654c8777d6ec (diff)
query queue sizes
with [tcpclient] use [bang( with [tcpserver] use [client <x>( svn path=/trunk/externals/iem/iemnet/; revision=13312
Diffstat (limited to 'iemnet_data.h')
-rw-r--r--iemnet_data.h9
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);