summaryrefslogtreecommitdiffstats
path: root/runtime/wtp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-09-30 14:20:01 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-09-30 14:20:01 +0200
commit5a1a73b4326d97789b5640225be0e25cb8dd8de7 (patch)
tree990de120cd608ccb83a89e54ba4441bc4c9e9fd3 /runtime/wtp.c
parentd03fb1b9058a3e81c8d0ba72b916d514106567ed (diff)
downloadrsyslog-5a1a73b4326d97789b5640225be0e25cb8dd8de7.tar.gz
rsyslog-5a1a73b4326d97789b5640225be0e25cb8dd8de7.tar.xz
rsyslog-5a1a73b4326d97789b5640225be0e25cb8dd8de7.zip
improved threading
- changed sequence when awakening thread - removed no longer needed condition variable - EXPERIMENTALLY added mutex guarding to hostname lookups this is to be removed if it does not have any verifyable useful effect
Diffstat (limited to 'runtime/wtp.c')
-rw-r--r--runtime/wtp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/wtp.c b/runtime/wtp.c
index 54f12b2b..734c8d57 100644
--- a/runtime/wtp.c
+++ b/runtime/wtp.c
@@ -304,11 +304,12 @@ wtpShutdownAll(wtp_t *pThis, wtpState_t tShutdownCmd, struct timespec *ptTimeout
rsRetVal wtpSignalWrkrTermination(wtp_t *pThis)
{
DEFiRet;
- /* I leave the mutex code here out as it give as deadlocks. I think it is not really
+ /* I leave the mutex code here out as it gives us deadlocks. I think it is not really
* needed and we are on the safe side. I leave this comment in if practice proves us
- * wrong. The whole thing should be removed after half a your or year if we see there
+ * wrong. The whole thing should be removed after half a year or year if we see there
* actually is no issue (or revisit it from a theoretical POV).
* rgerhards, 2008-01-28
+ * revisited 2008-09-30, still a bit unclear, leave in
*/
/*TODO: mutex or not mutex, that's the question ;)DEFVARS_mutexProtection;*/