From e0d46f8462cb7e45aab1580f71a8e943ebbf83cd Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 19 Sep 2021 16:33:48 +0200 Subject: [PATCH] Fixed two compile-breaking mistakes. --- src/thread.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/thread.c b/src/thread.c index 3dd41ed08..84104422d 100644 --- a/src/thread.c +++ b/src/thread.c @@ -298,21 +298,25 @@ thread_create_mutex_with_spin_count(unsigned int spin_count) } -void +int thread_wait_mutex(mutex_t *_mutex) { pt_mutex_t *mutex = (pt_mutex_t *)_mutex; pthread_mutex_lock(&mutex->mutex); + + return 1; } -void +int thread_unlock_mutex(mutex_t *_mutex) { pt_mutex_t *mutex = (pt_mutex_t *)_mutex; pthread_mutex_unlock(&mutex->mutex); + + return 1; }