From 158e4c0b6cb173af8907453c6b083932e34a910e Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 22 Apr 2021 10:35:37 +0100 Subject: [PATCH] Add @(cold) tag --- core/sync/sync2/extended.odin | 1 + 1 file changed, 1 insertion(+) diff --git a/core/sync/sync2/extended.odin b/core/sync/sync2/extended.odin index 70a2e8011..3f44a172a 100644 --- a/core/sync/sync2/extended.odin +++ b/core/sync/sync2/extended.odin @@ -228,6 +228,7 @@ once_do :: proc(o: ^Once, fn: proc()) { } } +@(cold) _once_do_slow :: proc(o: ^Once, fn: proc()) { mutex_lock(&o.m); defer mutex_unlock(&o.m);