aboutsummaryrefslogtreecommitdiff
path: root/core/sync
diff options
context:
space:
mode:
Diffstat (limited to 'core/sync')
-rw-r--r--core/sync/sync2/primitives_pthreads.odin2
1 files changed, 1 insertions, 1 deletions
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);
}