summaryrefslogtreecommitdiffstats
path: root/src/ioq.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-11-09 14:34:21 -0500
committerTavian Barnes <tavianator@tavianator.com>2023-11-09 15:35:40 -0500
commitc745df94a182b8a569cb833ecfbe8da33bf01f98 (patch)
treed64642a509a2dd641bb851ec7c338e0558263ee7 /src/ioq.c
parent0a5091a9005b485fccad689a4cbf081802860a5a (diff)
downloadbfs-c745df94a182b8a569cb833ecfbe8da33bf01f98.tar.xz
config: New attr_noinline and attr_cold macros
Diffstat (limited to 'src/ioq.c')
-rw-r--r--src/ioq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ioq.c b/src/ioq.c
index 244b2cc..ef89fa8 100644
--- a/src/ioq.c
+++ b/src/ioq.c
@@ -269,6 +269,7 @@ static struct ioq_monitor *ioq_slot_monitor(struct ioqq *ioqq, ioq_slot *slot) {
}
/** Atomically wait for a slot to change. */
+attr_noinline
static uintptr_t ioq_slot_wait(struct ioqq *ioqq, ioq_slot *slot, uintptr_t value) {
struct ioq_monitor *monitor = ioq_slot_monitor(ioqq, slot);
mutex_lock(&monitor->mutex);
@@ -298,6 +299,7 @@ done:
}
/** Wake up any threads waiting on a slot. */
+attr_noinline
static void ioq_slot_wake(struct ioqq *ioqq, ioq_slot *slot) {
struct ioq_monitor *monitor = ioq_slot_monitor(ioqq, slot);