diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-10 17:33:21 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-10 17:33:21 +0000 |
commit | 68efb41220a834870681f293481655ed47e7b197 (patch) | |
tree | 7d86bb0fa5c08a02079f406267dff0bf49795a80 /threads.c | |
parent | 41f386f6abeff1577812a58ccd1d416a5389a85b (diff) | |
download | rsyslog-68efb41220a834870681f293481655ed47e7b197.tar.gz rsyslog-68efb41220a834870681f293481655ed47e7b197.tar.xz rsyslog-68efb41220a834870681f293481655ed47e7b197.zip |
- some cleanup
- implemented management function for worker thread 0 in order to change
queue workers dynamically -- stage work
Diffstat (limited to 'threads.c')
-rw-r--r-- | threads.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -229,17 +229,9 @@ thrdSleep(thrdInfo_t *pThis, int iSeconds, int iuSeconds) assert(pThis != NULL); tvSelectTimeout.tv_sec = iSeconds; tvSelectTimeout.tv_usec = iuSeconds; /* micro seconds */ - thrdUnblockTermination(pThis); - /* there may be a race condition if pthread_kill() is called after unblock but - * before the select() is setup. TODO: check and re-eval -- rgerhards, 2007-12-20 - */ select(1, NULL, NULL, NULL, &tvSelectTimeout); if(pThis->bShallStop) iRet = RS_RET_TERMINATE_NOW; -#if 0 /* TODO: remove once we know we do not need the thrdBlockTermination() call -- rgerhards, 2007.12.25 */ - else - thrdBlockTermination(pThis); -#endif return iRet; } |