mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-02 02:16:12 -04:00
make once_do_without_data_contextless actually contextless
This commit is contained in:
1 parent
4ec03a2d9b
commit
bd4afafc66
1 file changed
+2
-2
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user