summaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-31 09:07:24 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-31 09:07:24 +0000
commit26aa8b09dbc2de1c7bdd97921a273511d585e043 (patch)
treeefb400bafcf30f832e1418d3a8e448b01d7d1293 /debug.c
parenteddf674157b304f167d965ccff80ec223b7f9ab1 (diff)
downloadrsyslog-26aa8b09dbc2de1c7bdd97921a273511d585e043.tar.gz
rsyslog-26aa8b09dbc2de1c7bdd97921a273511d585e043.tar.xz
rsyslog-26aa8b09dbc2de1c7bdd97921a273511d585e043.zip
worked a bit on atomic memory operations to support problem-free threading
(only at non-intrusive places)
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c2
1 files changed, 2 insertions, 0 deletions
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);
}