summaryrefslogtreecommitdiffstats
path: root/src/ioq.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-07-04 15:01:18 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-07-06 15:24:38 -0400
commit379dee8a47480938c067fca0acd01dea9b5afa33 (patch)
treef6e41efe2e019d360bc38c7229914c6b17724c13 /src/ioq.h
parent187ef092b6ea0f92dac53fbd2deb71379400446e (diff)
downloadbfs-379dee8a47480938c067fca0acd01dea9b5afa33.tar.xz
ioq: New ioq_capacity() 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 064e2e2..9901293 100644
--- a/src/ioq.h
+++ b/src/ioq.h
@@ -41,6 +41,11 @@ struct ioq_res {
struct ioq *ioq_create(size_t depth, size_t nthreads);
/**
+ * Check the remaining capacity of a queue.
+ */
+size_t ioq_capacity(const struct ioq *ioq);
+
+/**
* Asynchronous bfs_opendir().
*
* @param ioq