From 1321fdca3ab3cf603e765a4cd29364c87a5044af Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 20 Aug 2019 13:26:29 -0400 Subject: call pthread function instead of self-recursion --- src/threads/mtx_unlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.1