diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-11-09 14:34:21 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-11-09 15:35:40 -0500 |
commit | c745df94a182b8a569cb833ecfbe8da33bf01f98 (patch) | |
tree | d64642a509a2dd641bb851ec7c338e0558263ee7 /src/ioq.c | |
parent | 0a5091a9005b485fccad689a4cbf081802860a5a (diff) | |
download | bfs-c745df94a182b8a569cb833ecfbe8da33bf01f98.tar.xz |
config: New attr_noinline and attr_cold macros
Diffstat (limited to 'src/ioq.c')
-rw-r--r-- | src/ioq.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |