diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-10-09 12:56:28 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-10-09 12:56:28 +0200 |
commit | 1229143ca3d194bb0daaa5252809d59ee0c3a0bf (patch) | |
tree | 0a098cde15c1bf243a743e64535bd9ab8328d671 /runtime/queue.c | |
parent | af3c944563b8651c14b2b9087ea76f7eeacfc065 (diff) | |
download | rsyslog-1229143ca3d194bb0daaa5252809d59ee0c3a0bf.tar.gz rsyslog-1229143ca3d194bb0daaa5252809d59ee0c3a0bf.tar.xz rsyslog-1229143ca3d194bb0daaa5252809d59ee0c3a0bf.zip |
minor: reorder to slightly reduce size of critical section
Diffstat (limited to 'runtime/queue.c')
-rw-r--r-- | runtime/queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/queue.c b/runtime/queue.c index 3ef6d5a0..2d1bf7e3 100644 --- a/runtime/queue.c +++ b/runtime/queue.c @@ -2181,10 +2181,10 @@ finalize_it: if(pThis->qType != QUEUETYPE_DIRECT) { /* make sure at least one worker is running. */ queueAdviseMaxWorkers(pThis); - dbgoprint((obj_t*) pThis, "EnqueueMsg advised worker start\n"); /* and release the mutex */ d_pthread_mutex_unlock(pThis->mut); pthread_setcancelstate(iCancelStateSave, NULL); + dbgoprint((obj_t*) pThis, "EnqueueMsg advised worker start\n"); /* the following pthread_yield is experimental, but brought us performance * benefit. For details, please see http://kb.monitorware.com/post14216.html#p14216 * rgerhards, 2008-10-09 |