Merge branch 'xMAC94x/harden-threads' into 'master'

add a check that at least 1 thread works for slowJobPool and for every configuration

See merge request veloren/veloren!1930
This commit is contained in:
Marcel 2021-03-17 14:24:48 +00:00
commit c27593c2d0

View File

@ -66,7 +66,7 @@ impl InternalSlowJobPool {
running_jobs: RwLock::new(HashMap::new()),
configs: RwLock::new(HashMap::new()),
global_running_jobs: Arc::new(AtomicU64::new(0)),
global_limit,
global_limit: global_limit.max(1),
threadpool,
}
}