From bd4afafc66fa376fefa6fa5287eb66ea70e9b442 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Wed, 16 Apr 2025 12:44:00 -0300 Subject: [PATCH] make once_do_without_data_contextless actually contextless --- core/sync/extended.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sync/extended.odin b/core/sync/extended.odin index 30b1b2770..0cea38d7f 100644 --- a/core/sync/extended.odin +++ b/core/sync/extended.odin @@ -581,9 +581,9 @@ once_do_without_data :: proc(o: ^Once, fn: proc()) { /* Call a contextless function with no data once. */ -once_do_without_data_contextless :: proc(o: ^Once, fn: proc "contextless" ()) { +once_do_without_data_contextless :: proc "contextless" (o: ^Once, fn: proc "contextless" ()) { @(cold) - do_slow :: proc(o: ^Once, fn: proc "contextless" ()) { + do_slow :: proc "contextless" (o: ^Once, fn: proc "contextless" ()) { guard(&o.m) if !o.done { fn()