diff options
| author | gingerBill <bill@gingerbill.org> | 2021-04-22 10:35:37 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-04-22 10:35:37 +0100 |
| commit | 158e4c0b6cb173af8907453c6b083932e34a910e (patch) | |
| tree | 2a533da68efb70809c1b6eebff2287407bd6cb88 /core/sync/sync2 | |
| parent | 47c7dc6a9bfc679f027984bd68523743b4d7734f (diff) | |
Add @(cold) tag
Diffstat (limited to 'core/sync/sync2')
| -rw-r--r-- | core/sync/sync2/extended.odin | 1 |
1 files changed, 1 insertions, 0 deletions
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); |