aboutsummaryrefslogtreecommitdiff
path: root/core/sync/sync2
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2021-08-16 12:03:43 +0100
committerGitHub <noreply@github.com>2021-08-16 12:03:43 +0100
commit5f072591ba70abf6df59f4ed9372649e7ebda710 (patch)
tree8c9d02259b75be22736d65d4a595ee933a26a259 /core/sync/sync2
parentd62f189d7261160a2d3c66bfba2fda182a863fbd (diff)
parente3fef2dadef2b10342222f0314583f6f53e39ff4 (diff)
Merge pull request #1082 from odin-lang/or_else-or_return-operator
`or_else` and `or_return` operators
Diffstat (limited to 'core/sync/sync2')
-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);
}