summaryrefslogtreecommitdiff
path: root/src/irmd/api_table.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-04-01 13:45:51 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-04-01 14:28:59 +0200
commitc72634b5d921bc06d8e06afb2a60a05a1acb7ee2 (patch)
tree833a7f4133fb3f3f8d746343cff6fb9fc40f7829 /src/irmd/api_table.c
parent47b6ff3333fb3fcc3f5f76459c356c79e4bb111c (diff)
downloadouroboros-c72634b5d921bc06d8e06afb2a60a05a1acb7ee2.tar.gz
ouroboros-c72634b5d921bc06d8e06afb2a60a05a1acb7ee2.zip
irmd: Add dynamic threadpool
This makes the IRMd add/remove worker threads dynamically. IRMD_TPM_TIMEOUT sets a timer in the threadpool manager for checking idle threads. Each time this timer expires, it will reduce the threadpool by one. IRMD_MIN_AV_THREADS is the minimum number of available worker threads. If the number of active threads goes under this threshold, the threadpool manager will create threads to get the number of threads to IRMD_MAX_AV_THREADS, unless IRMD_MAX_THREADS is reached.
Diffstat (limited to 'src/irmd/api_table.c')
0 files changed, 0 insertions, 0 deletions