mirror of
https://github.com/devkitPro/wut.git
synced 2026-06-20 11:33:58 -05:00
wutnewlib: fix lock_try_acquire
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
Some checks failed
C/C++ CI / ubuntu-latest (push) Has been cancelled
This commit is contained in:
parent
afa43f676d
commit
2016e429c1
|
|
@ -92,7 +92,7 @@ __SYSCALL(lock_acquire)(_LOCK_T *lock)
|
|||
int
|
||||
__SYSCALL(lock_try_acquire)(_LOCK_T *lock)
|
||||
{
|
||||
return OSFastMutex_TryLock(__wut_get_mutex(lock));
|
||||
return OSFastMutex_TryLock(__wut_get_mutex(lock)) ? 0 : 1;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user