mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Require that WorkQueue's QueueData is Sync rather than Send.
This commit is contained in:
parent
a0db2cf1bb
commit
028484526d
2 changed files with 12 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue