diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2015-03-05 09:01:46 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2015-03-05 09:01:46 +0000 |
| commit | 5982e1b66f2fefeaa3ee22845ea28a2004dda61a (patch) | |
| tree | 1188fa84f655a8b38a119afe6f6d7b83aa453bc2 /lib/libstdthreads | |
| parent | 6ebf6f59dcfa09a3f4b2ab20b1010ea1eaa660bb (diff) | |
Notes
Diffstat (limited to 'lib/libstdthreads')
| -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 6c9166da71b4..f38fbae5261e 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: |
