mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Borrow the QueueData for WorkQueue::run.
This allows us to get rid of the raw pointers and unsafe dereferencing in the parallel layout implementation.
This commit is contained in:
parent
d09881b051
commit
24730f1078
4 changed files with 46 additions and 48 deletions
|
@ -129,9 +129,7 @@ pub struct SharedLayoutContext {
|
|||
pub goal: ReflowGoal,
|
||||
}
|
||||
|
||||
pub struct SharedLayoutContextWrapper(pub *const SharedLayoutContext);
|
||||
|
||||
unsafe impl Send for SharedLayoutContextWrapper {}
|
||||
unsafe impl Send for SharedLayoutContext {}
|
||||
|
||||
pub struct LayoutContext<'a> {
|
||||
pub shared: &'a SharedLayoutContext,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue