Add a Rayon thread pool
This commit is contained in:
parent
3df199680a
commit
022dff47e3
13 changed files with 430 additions and 344 deletions
|
@ -73,7 +73,7 @@ macro_rules! unwrap_or {
|
|||
}
|
||||
}
|
||||
|
||||
struct Globals {
|
||||
pub struct Globals {
|
||||
used_attrs: Lock<Vec<u64>>,
|
||||
known_attrs: Lock<Vec<u64>>,
|
||||
syntax_pos_globals: syntax_pos::Globals,
|
||||
|
@ -98,7 +98,7 @@ pub fn with_globals<F, R>(f: F) -> R
|
|||
})
|
||||
}
|
||||
|
||||
scoped_thread_local!(static GLOBALS: Globals);
|
||||
scoped_thread_local!(pub static GLOBALS: Globals);
|
||||
|
||||
#[macro_use]
|
||||
pub mod diagnostics {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue