diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-04-16 12:44:00 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-04-16 12:44:00 -0300 |
| commit | bd4afafc66fa376fefa6fa5287eb66ea70e9b442 (patch) | |
| tree | e5768b5a2906cb56da81d089b6080d00a4d233fd /core | |
| parent | 4ec03a2d9b1c88a657829af7dc193fcb73d419bb (diff) | |
make once_do_without_data_contextless actually contextless
Diffstat (limited to 'core')
| -rw-r--r-- | core/sync/extended.odin | 4 |
1 files 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() |