mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
commit
c27593c2d0
@ -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,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user