mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
also those dispatcher tricks wont help the test, it still sporadically fails
This commit is contained in:
parent
25d9e5b27e
commit
8ca458188d
@ -155,10 +155,14 @@ impl InternalSlowJobPool {
|
|||||||
let dispatch_receiver = Mutex::new(dispatch_receiver);
|
let dispatch_receiver = Mutex::new(dispatch_receiver);
|
||||||
let threadpool2 = Arc::clone(&threadpool);
|
let threadpool2 = Arc::clone(&threadpool);
|
||||||
threadpool.spawn(move || {
|
threadpool.spawn(move || {
|
||||||
let dispatch_receiver = dispatch_receiver.lock().unwrap();
|
threadpool2.in_place_scope(|s| {
|
||||||
for task in dispatch_receiver.iter() {
|
s.spawn(|s| {
|
||||||
threadpool2.spawn(task)
|
let dispatch_receiver = dispatch_receiver.lock().unwrap();
|
||||||
}
|
for task in dispatch_receiver.iter() {
|
||||||
|
s.spawn(|_| (task)());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user