diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2025-05-26 10:26:12 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2025-05-26 10:45:45 -0400 |
commit | 89969b4b0bea3bd4cddf97c989ca63f3a1aaa07c (patch) | |
tree | 58a244a7121a0000313b2044c139df2340e72ee1 /src/ioq.c | |
parent | 6fa72ff42d95dfd883d59ce7cf6bdc74abebf015 (diff) | |
download | bfs-89969b4b0bea3bd4cddf97c989ca63f3a1aaa07c.tar.xz |
Add support for __attribute__((counted_by(...)))
Diffstat (limited to 'src/ioq.c')
-rw-r--r-- | src/ioq.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -203,7 +203,7 @@ struct ioqq { cache_align atomic size_t tail; /** The circular buffer itself. */ - cache_align ioq_slot slots[]; + cache_align ioq_slot slots[]; // _counted_by(slot_mask + 1) }; /** Destroy an I/O command queue. */ @@ -593,7 +593,7 @@ struct ioq { /** The number of background threads. */ size_t nthreads; /** The background threads themselves. */ - struct ioq_thread threads[]; + struct ioq_thread threads[] _counted_by(nthreads); }; /** Cancel a request if we need to. */ |