summaryrefslogtreecommitdiffstats
path: root/runtime/wti.h
Commit message (Collapse)AuthorAgeFilesLines
* enhanced worker thread pool by atomic opsRainer Gerhards2009-07-201-1/+1
| | | | | ... greater performance and was able to remove a potential troublespot in a cancel cleanup handler.
* architecture change: queue now always has at least one worker threadRainer Gerhards2009-07-201-0/+2
| | | | | | ...if not running in direct mode. Previous versions could run without any active workers. This simplifies the code at a very small expense. See v5 compatibility note document for more in-depth discussion.
* further code simplificationRainer Gerhards2009-07-171-10/+4
| | | | | | | | | ... could even remove one mutex by using a better algorithm. I think I also spotted some situation in which a hang could have happened. As I can't fix it in v4 and less without moving to the new engine, I make no effort in testing this out. Hangs occur during shutdown, only (if at all). The code changes should also result in some mild performance improvement. Some bug potential, but overall the bug potential should have been greatly reduced.
* some code simplificationRainer Gerhards2009-07-161-1/+1
|
* further reduction in code size/complexity due to design changeRainer Gerhards2009-07-081-1/+0
|
* simplified worker thread handlingRainer Gerhards2009-07-081-1/+1
| | | | | based on now working with detached threads. This is probably the biggest patch in this series and with large bug potential.
* Merge branch 'omfile' into tmpRainer Gerhards2009-06-221-2/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was a complex manual merge, especially in action.c. So if there occur some problems, this would be a good point to start troubleshooting. I run a couple of tests before commiting and they all went well. Conflicts: action.c action.h runtime/queue.c runtime/queue.h runtime/wti.c runtime/wti.h
| * removed uniprocessor optimizationRainer Gerhards2009-06-191-2/+1
| | | | | | | | | | | | ... as it was not even optimal on uniprocessors any longer ;) I keep the config directive in, maybe we can utilize it again at some later point in time (questionable).
* | interim commit: working on failure casesRainer Gerhards2009-05-271-2/+2
| | | | | | | | slightly improved situation, would like to save it before carrying on
* | moving to a cleaner implementation of batchesRainer Gerhards2009-05-121-12/+2
| | | | | | | | ... now that we know what we need from a theoretical POV.
* | first attempt at dequeueing multiple batches inside the queueRainer Gerhards2009-04-221-2/+14
|/ | | | | | ... but this code has serious problems when terminating the queue, also it is far from being optimal. I will commit a series of patches (hopefully) as I am on the path to the final implementation.
* added a setting "$OptimizeForUniprocessor"Rainer Gerhards2008-10-221-0/+1
| | | | | | ...to enable users to turn off pthread_yield calls which are counter-productive on multiprocessor machines (but have been shown to be useful on uniprocessors)
* improved threadingRainer Gerhards2008-09-301-1/+0
| | | | | | | | - 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
* moved runtime files into their own directoryRainer Gerhards2008-04-161-0/+63