diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2021-08-16 12:03:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-16 12:03:43 +0100 |
| commit | 5f072591ba70abf6df59f4ed9372649e7ebda710 (patch) | |
| tree | 8c9d02259b75be22736d65d4a595ee933a26a259 /core/sync/sync2 | |
| parent | d62f189d7261160a2d3c66bfba2fda182a863fbd (diff) | |
| parent | e3fef2dadef2b10342222f0314583f6f53e39ff4 (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.odin | 2 |
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); } |