aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-07-04 08:55:18 +0200
committerMs2ger <ms2ger@gmail.com>2015-07-07 11:11:46 +0200
commit028484526ddf570d33fd4e0a8965b54bc8ef3de6 (patch)
treefe579686320cbe2f96ea49cda22388cadbb44ebe /components/layout
parenta0db2cf1bb720130aabd0d755e9432bd17063740 (diff)
downloadservo-028484526ddf570d33fd4e0a8965b54bc8ef3de6.tar.gz
servo-028484526ddf570d33fd4e0a8965b54bc8ef3de6.zip
Require that WorkQueue's QueueData is Sync rather than Send.
Diffstat (limited to 'components/layout')
-rw-r--r--components/layout/context.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs
index 1e376166300..bf560ff6cc0 100644
--- a/components/layout/context.rs
+++ b/components/layout/context.rs
@@ -129,7 +129,16 @@ pub struct SharedLayoutContext {
pub goal: ReflowGoal,
}
-unsafe impl Send for SharedLayoutContext {}
+// FIXME(#6569) This implementations is unsound:
+// XXX UNSOUND!!! for image_cache_task
+// XXX UNSOUND!!! for image_cache_sender
+// XXX UNSOUND!!! for constellation_chan
+// XXX UNSOUND!!! for layout_chan
+// XXX UNSOUND!!! for font_cache_task
+// XXX UNSOUND!!! for stylist
+// XXX UNSOUND!!! for new_animations_sender
+// XXX UNSOUND!!! for canvas_layers_sender
+unsafe impl Sync for SharedLayoutContext {}
pub struct LayoutContext<'a> {
pub shared: &'a SharedLayoutContext,