summaryrefslogtreecommitdiffstats
path: root/threads.h
Commit message (Collapse)AuthorAgeFilesLines
* replaced data type "bool" by "sbool" because this created some portability ↵Rainer Gerhards2010-02-021-2/+2
| | | | issues
* some minor cleanup, consolidated some codeRainer Gerhards2009-10-161-1/+0
|
* solved a recently introduced race during input thread shutdownRainer Gerhards2009-10-151-1/+2
| | | | | | | This was introduced when we re-enabled non-cancel thread termination a few commits ago. This code has never been released as a tarball, so that is no bugfix for a release but rather a WiP regression fix and thus does not need to be mentioned in the ChangeLog.
* internal: added ability to terminate input modules not via pthread_cancel...Rainer Gerhards2009-07-201-1/+2
| | | | | | | | ... but an alternate approach via pthread_kill. This is somewhat safer as we do not need to think about the cancel-safeness of all libraries we use. However, not all inputs can easily supported, so this now is a feature that can be requested by the input module (the most important ones request it).
* moved files to the runtimeRainer Gerhards2008-04-161-3/+2
| | | | | | there are still some files left which could go into the runtime, but I think we will delete most of them once we are done with the full modularization.
* - some cleanupRainer Gerhards2008-01-101-6/+0
| | | | | - implemented management function for worker thread 0 in order to change queue workers dynamically -- stage work
* - fixed a bug that caused a segfault on startup when no $WorkDir directivev3-10-1aRainer Gerhards2008-01-101-8/+1
| | | | | | was specified in rsyslog.conf - fixed a bug that caused a segfault on queues with types other than "disk" - removed the now longer needed thread TermSyncTool
* moved queue code to its own module (finally)Rainer Gerhards2008-01-031-20/+0
|
* - working on a potential race condition on the new input module interface.Rainer Gerhards2007-12-201-0/+10
| | | | | | | | | | See newsgroup posting for details on the issue: http://groups.google.com/group/comp.programming.threads/msg/330b9675f17 a1ad6 I tried some mutex operations but came to the conclusion that this does not really help. So I have now switched to plain thread cancellation, which so far seems to be OK. Need more practical experience with other input modules to make a final decision. Thus I leave all code in and have just disabled the problematic code.
* - implemented afterRun input module interface functionRainer Gerhards2007-12-171-1/+2
| | | | - implemented $klogSymbolsTwice config directive
* moved thread termination code out to threads.cRainer Gerhards2007-12-171-2/+4
|
* created thread-class internal wrapper for calling user supplied thread mainRainer Gerhards2007-12-171-1/+2
| | | | function
* graceful termination now supportedRainer Gerhards2007-12-141-1/+3
|
* first rough version of input module thread terminationRainer Gerhards2007-12-141-0/+1
|
* added thread activationRainer Gerhards2007-12-141-0/+1
|
* on the way to a real input module interface and threading class...Rainer Gerhards2007-12-141-0/+15
|
* moved core threading helpers out of syslogd.cRainer Gerhards2007-12-141-0/+47