diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-11-07 16:43:35 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-11-09 10:41:55 -0500 |
commit | 5fe11b94b38bfb4d43637e05ac24da0d7d72b9ea (patch) | |
tree | 0e04290919f28fa9858aa92c016af7b7808627b5 /src/bftw.c | |
parent | 163baf1c9af13be0ce705b133e41e0c3d6427398 (diff) | |
download | bfs-5fe11b94b38bfb4d43637e05ac24da0d7d72b9ea.tar.xz |
ioq: Implement a better non-blocking pop
Diffstat (limited to 'src/bftw.c')
-rw-r--r-- | src/bftw.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -588,7 +588,7 @@ static int bftw_ioq_pop(struct bftw_state *state, bool block) { return -1; } - struct ioq_ent *ent = block ? ioq_pop(ioq) : ioq_trypop(ioq); + struct ioq_ent *ent = ioq_pop(ioq, block); if (!ent) { return -1; } |