aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread_2020/lib.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-12-08 15:00:40 +0100
committerSimon Sapin <simon.sapin@exyr.org>2019-12-10 18:41:24 +0100
commitc895e3d2363a868c3ac9b3dcb4f2a2a4fd1c6227 (patch)
treeed2c41a33fef3b7729dc2391e80e56c419ac9ffe /components/layout_thread_2020/lib.rs
parentaade6030258ac644739cc3e7658c16f72fec5bd2 (diff)
downloadservo-c895e3d2363a868c3ac9b3dcb4f2a2a4fd1c6227.tar.gz
servo-c895e3d2363a868c3ac9b3dcb4f2a2a4fd1c6227.zip
Disable use of rayon with `--layout-threads 1` instead of panicking
Diffstat (limited to 'components/layout_thread_2020/lib.rs')
-rw-r--r--components/layout_thread_2020/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/layout_thread_2020/lib.rs b/components/layout_thread_2020/lib.rs
index 35b4c92c21b..bb9f614831c 100644
--- a/components/layout_thread_2020/lib.rs
+++ b/components/layout_thread_2020/lib.rs
@@ -568,6 +568,7 @@ impl LayoutThread {
snapshot_map: snapshot_map,
},
font_cache_thread: Mutex::new(self.font_cache_thread.clone()),
+ use_rayon: STYLE_THREAD_POOL.pool().is_some(),
}
}