summaryrefslogtreecommitdiffstats
path: root/src/mpq.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpq.h')
-rw-r--r--src/mpq.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mpq.h b/src/mpq.h
index 7b7549cfdb3..f32bf7571fb 100644
--- a/src/mpq.h
+++ b/src/mpq.h
@@ -33,7 +33,7 @@ struct mpq {
void (*mpq_serial_fn)(struct mbuf *);
};
-void mpq_init(struct mpq *, int, struct mbuf *(*)(struct mbuf *), void (*)(struct mbuf *));
+void mpq_init(struct mpq *, int, int, struct mbuf *(*)(struct mbuf *), void (*)(struct mbuf *));
void mpq_barrier(struct mpq *);
void mpq_destroy(struct mpq *);
int mpq_enqueue(struct mpq *, struct mbuf *);
@@ -105,12 +105,12 @@ _mpq_thread(struct mpq *mpq)
/* External functions */
void
-mpq_init(struct mpq *mpq, int ipl, struct mbuf *(*parallel)(struct mbuf *), void (*serial)(struct mbuf *))
+mpq_init(struct mpq *mpq, int ipl, int maxlen, struct mbuf *(*parallel)(struct mbuf *), void (*serial)(struct mbuf *))
{
assert(parallel != NULL);
mpq->mpq_sactive = 0;
- mpq->mpq_maxlen = MPQ_DEFAULTLEN;
+ mpq->mpq_maxlen = maxlen;
mtx_init(&mpq->mpq_mtx, ipl);
ml_init(&mpq->mpq_list);
mpq->mpq_cursor = NULL;