Skip to content
Permalink
Browse files

style: Add a comment about a Send bound that may look confusing.

  • Loading branch information...
emilio committed Sep 2, 2019
1 parent c7add81 commit 3fcd23dcdf0c8f8e32a1ae0b0eafd7640f63b10b
Showing with 3 additions and 0 deletions.
  1. +3 −0 components/style/scoped_tls.rs
@@ -15,6 +15,9 @@ use std::ops::DerefMut;
///
/// We use this on Servo to construct thread-local contexts, but clear them once
/// we're done with restyling.
///
/// Note that the cleanup is done on the thread that owns the scoped TLS, thus
/// the Send bound.
pub struct ScopedTLS<'scope, T: Send> {
pool: &'scope rayon::ThreadPool,
slots: Box<[RefCell<Option<T>>]>,

0 comments on commit 3fcd23d

Please sign in to comment.
You can’t perform that action at this time.