From 26aa8b09dbc2de1c7bdd97921a273511d585e043 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 31 Mar 2008 09:07:24 +0000 Subject: worked a bit on atomic memory operations to support problem-free threading (only at non-intrusive places) --- debug.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'debug.c') diff --git a/debug.c b/debug.c index 350bb6fb..29c65cf1 100644 --- a/debug.c +++ b/debug.c @@ -660,7 +660,9 @@ static void dbgCallStackDestruct(void *arg) free(pThrd->pszThrdName); } + pthread_mutex_lock(&mutCallStack); DLL_Del(CallStack, pThrd); + pthread_mutex_unlock(&mutCallStack); } -- cgit