From 4313a382976cf4223976fbdcd144fe2a0fa93145 Mon Sep 17 00:00:00 2001 From: GameParrot <85067619+GameParrot@users.noreply.github.com> Date: Mon, 1 May 2023 19:24:44 -0400 Subject: [PATCH] temporary workaround --- src/pthreads.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pthreads.cpp b/src/pthreads.cpp index 8ab99d3..237c415 100644 --- a/src/pthreads.cpp +++ b/src/pthreads.cpp @@ -5,6 +5,7 @@ #include #include "pthreads.h" #include "errno.h" +#include using namespace shim; @@ -262,7 +263,10 @@ int shim::pthread_mutex_destroy(pthread_mutex_t *mutex) { int shim::pthread_mutex_lock(pthread_mutex_t *mutex) { int ret = ::pthread_mutex_lock(bionic::to_host(mutex)); - return bionic::translate_errno_from_host(ret); + if (ret != 0) { + printf("mutex lock failed\n"); + } + return 0; // TODO: fix mutex lock failed crash. Always returning 0 for now as a temporary workaround. } int shim::pthread_mutex_unlock(pthread_mutex_t *mutex) {