summaryrefslogtreecommitdiffstats
path: root/src/ioq.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-12-02 13:48:58 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-12-03 14:42:05 -0500
commitac393d60a3d390ffc3b5f79e9099ecb805e80ba9 (patch)
treead21272572060c5935c6b0402b88b5999c8d13e1 /src/ioq.h
parent8a317180e462e3641fb4f3a55f0da1dfe903b506 (diff)
downloadbfs-ac393d60a3d390ffc3b5f79e9099ecb805e80ba9.tar.xz
ioq: Submit and pop requests in batches
The new ioq_submit() function is now necessary to call to ensure the pending request batch is flushed.
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 da0a525..5eaa066 100644
--- a/src/ioq.h
+++ b/src/ioq.h
@@ -190,6 +190,11 @@ int ioq_closedir(struct ioq *ioq, struct bfs_dir *dir, void *ptr);
int ioq_stat(struct ioq *ioq, int dfd, const char *path, enum bfs_stat_flags flags, struct bfs_stat *buf, void *ptr);
/**
+ * Submit any buffered requests.
+ */
+void ioq_submit(struct ioq *ioq);
+
+/**
* Pop a response from the queue.
*
* @ioq