diff options
Diffstat (limited to 'lib/libstdthreads/mtx.c')
-rw-r--r-- | lib/libstdthreads/mtx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstdthreads/mtx.c b/lib/libstdthreads/mtx.c index 6c9166d..f38fbae 100644 --- a/lib/libstdthreads/mtx.c +++ b/lib/libstdthreads/mtx.c @@ -96,7 +96,7 @@ int mtx_trylock(mtx_t *mtx) { - switch (pthread_mutex_lock(mtx)) { + switch (pthread_mutex_trylock(mtx)) { case 0: return (thrd_success); case EBUSY: |