From 4035fec784fc7e0109d2f8a3d3bbfb5696512de1 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 15 Aug 2021 18:13:56 +0100 Subject: Add more uses of `or_return` --- core/sync/sync2/primitives_pthreads.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/sync/sync2') diff --git a/core/sync/sync2/primitives_pthreads.odin b/core/sync/sync2/primitives_pthreads.odin index 7e45e0565..d0484e09e 100644 --- a/core/sync/sync2/primitives_pthreads.odin +++ b/core/sync/sync2/primitives_pthreads.odin @@ -129,7 +129,7 @@ _Recursive_Mutex :: struct { } _recursive_mutex_lock :: proc(m: ^Recursive_Mutex) { - tid := runtime.current_thread_id(); + tid := _current_thread_id(); if tid != m.impl.owner { mutex_lock(&m.impl.mutex); } -- cgit v1.2.3