about summary refs log tree commit diff stats
path: root/src/libtools/threads.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtools/threads.c')
-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;