diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-08-20 13:26:29 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-08-20 13:26:29 -0400 |
| commit | 1321fdca3ab3cf603e765a4cd29364c87a5044af (patch) | |
| tree | c72792ad5efb3af02cb451b7a1eead2a9e176717 /src | |
| parent | 275c64a746a43fa1f8ee0b7b3a8ab37abab0d326 (diff) | |
call pthread function instead of self-recursion
Diffstat (limited to 'src')
| -rw-r--r-- | src/threads/mtx_unlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threads/mtx_unlock.c b/src/threads/mtx_unlock.c index 0e4abfab..509a3f86 100644 --- a/src/threads/mtx_unlock.c +++ b/src/threads/mtx_unlock.c @@ -3,5 +3,5 @@ int mtx_unlock(mtx_t *mtx) { - return mtx_unlock(mtx) == 0 ? thrd_success : thrd_error; + return pthread_mutex_unlock(mtx) == 0 ? thrd_success : thrd_error; } |
