about summary refs log tree commit diff stats
path: root/src/libtools
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-06-06 09:55:14 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-06-06 09:55:14 +0200
commitdebc7284b3eb4d0387654b24d03f31667c0ab2ec (patch)
treeff01cca1acfc73b0726be1cad20174cfb394fdea /src/libtools
parent60f5dfabd8e36c0d5d511af1deb3547bfb3a4901 (diff)
downloadbox64-debc7284b3eb4d0387654b24d03f31667c0ab2ec.tar.gz
box64-debc7284b3eb4d0387654b24d03f31667c0ab2ec.zip
Fixed regression on pthread_mutex_t
Diffstat (limited to 'src/libtools')
-rwxr-xr-xsrc/libtools/threads.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c
index d92472a7..83de0da9 100755
--- a/src/libtools/threads.c
+++ b/src/libtools/threads.c
@@ -776,6 +776,7 @@ pthread_mutex_t* getAlignedMutexWithInit(pthread_mutex_t* m, int init)
 			((int*)ret)[3+__PTHREAD_MUTEX_HAVE_PREV] = kind;		// inject in new one (i.e. "init" it)
 		}
 	}
+	am->self = am;
 	am->sign = SIGNMTX;
 	am->m = ret;
 	return ret;