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:
Ms2ger 2015-06-30 17:03:05 +02:00
parent d09881b051
commit 24730f1078
4 changed files with 46 additions and 48 deletions

View file

@ -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,