Skip to content

Commit

Permalink
[api] Fix pthread try lock.
Browse files Browse the repository at this point in the history
  • Loading branch information
travisdoor committed Mar 3, 2025
1 parent c28b073 commit 9e13cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bl/api/std/sync/_sync.posix.bl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ _mutex_lock :: fn (mutex: *_Mutex) Error #inline {
}

_mutex_try_lock :: fn (mutex: *_Mutex) (bool, Error) #inline {
state :: pthread_mutex_lock(mutex);
state :: pthread_mutex_trylock(mutex);
if state == 0 {
return true, OK;
}
Expand Down

0 comments on commit 9e13cdd

Please sign in to comment.