summaryrefslogtreecommitdiffstats
path: root/src/mpq.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-06-14 19:17:37 +1000
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-06-14 19:17:37 +1000
commite4afde9e7013dd7e7f368aee3fa897e193667f44 (patch)
tree2fdf98d9570f899ab0b010985992dc6bb0d24134 /src/mpq.h
parentstaging3 (diff)
downloadwireguard-openbsd-e4afde9e7013dd7e7f368aee3fa897e193667f44.tar.xz
wireguard-openbsd-e4afde9e7013dd7e7f368aee3fa897e193667f44.zip
staging4
Diffstat (limited to 'src/mpq.h')
-rw-r--r--src/mpq.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mpq.h b/src/mpq.h
index 2418d90973a..ff401b0c266 100644
--- a/src/mpq.h
+++ b/src/mpq.h
@@ -19,8 +19,8 @@ struct mpq_item {
struct mpq {
struct mutex q_mtx;
- struct mutex q_serial;
struct taskq *q_taskq;
+ struct rwlock q_serial_lock;
size_t q_max;
size_t q_len;
@@ -35,7 +35,7 @@ struct mpq {
TAILQ_HEAD(, mpq_item) q_serial_items;
};
-void mpq_init(struct mpq *, struct taskq *, void (*)(void *), void (*)(void *), size_t);
+void mpq_init(struct mpq *, struct taskq *, int ipl, void (*)(void *), void (*)(void *), size_t);
int mpq_add(struct mpq *, void *);
int mpq_active(struct mpq *);
size_t mpq_len(struct mpq *);