summaryrefslogtreecommitdiffstats
path: root/src/ioq.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-06-26 11:47:41 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-06-26 11:47:41 -0400
commitabd29143d805fa16c65489d5b1d79428943d0187 (patch)
treee3f87d3dd0310686a1ed18cb8e1452ba460ab1a6 /src/ioq.h
parent6b96d7b0ad73e6ed63cf5e32fd2544121e2b0284 (diff)
downloadbfs-abd29143d805fa16c65489d5b1d79428943d0187.tar.xz
ioq: New ioq_cancel() function
Diffstat (limited to 'src/ioq.h')
-rw-r--r--src/ioq.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ioq.h b/src/ioq.h
index 50e02b1..064e2e2 100644
--- a/src/ioq.h
+++ b/src/ioq.h
@@ -89,6 +89,11 @@ struct ioq_res *ioq_trypop(struct ioq *ioq);
void ioq_free(struct ioq *ioq, struct ioq_res *res);
/**
+ * Cancel any pending I/O operations.
+ */
+void ioq_cancel(struct ioq *ioq);
+
+/**
* Stop and destroy an I/O queue.
*/
void ioq_destroy(struct ioq *ioq);