diff options
author | dimitri staessens <dimitri.staessens@ugent.be> | 2017-04-01 13:45:51 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-04-01 14:28:59 +0200 |
commit | c72634b5d921bc06d8e06afb2a60a05a1acb7ee2 (patch) | |
tree | 833a7f4133fb3f3f8d746343cff6fb9fc40f7829 /src/lib/lockfile.c | |
parent | 47b6ff3333fb3fcc3f5f76459c356c79e4bb111c (diff) | |
download | ouroboros-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/lib/lockfile.c')
0 files changed, 0 insertions, 0 deletions