summaryrefslogtreecommitdiff
path: root/src/core/msgqueue.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-25 19:02:30 -0800
committerGarrett D'Amore <garrett@saucelabs.com>2016-12-27 20:42:03 -0800
commitca74e80e9b0695a1c374840058025e567189dd14 (patch)
treee707312a06fca922dfe97cdcb8b04615282f0875 /src/core/msgqueue.h
parent0cd2fa7310f1fdf45443a8a9e3335658b1c3c64c (diff)
downloadnng-ca74e80e9b0695a1c374840058025e567189dd14.tar.gz
nng-ca74e80e9b0695a1c374840058025e567189dd14.tar.bz2
nng-ca74e80e9b0695a1c374840058025e567189dd14.zip
Buffer resizing implemented. (Needed for single threaded inproc tests.)
Diffstat (limited to 'src/core/msgqueue.h')
-rw-r--r--src/core/msgqueue.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/msgqueue.h b/src/core/msgqueue.h
index 2684d42d..5efbc245 100644
--- a/src/core/msgqueue.h
+++ b/src/core/msgqueue.h
@@ -90,4 +90,8 @@ extern void nni_msgqueue_close(nni_msgqueue *);
// has expired. Any messages still in the queue at the timeout are freed.
extern void nni_msgqueue_drain(nni_msgqueue *, nni_time);
+extern int nni_msgqueue_resize(nni_msgqueue *, int);
+extern int nni_msgqueue_cap(nni_msgqueue *mq);
+extern int nni_msgqueue_len(nni_msgqueue *mq);
+
#endif // CORE_MSQUEUE_H