mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-08-04 21:52:54 +02:00
impl: switch most atomic ops to Relaxed
ordering
These all seem pretty straight-forward. Compared with #2706, I dropped the changes to the atomic orderings used in `ignore` because I haven't had time to think through that carefully. But the ops in this PR seem fine. Closes #2706
This commit is contained in:
committed by
Andrew Gallant
parent
119a58a400
commit
85a86eba2b
@ -68,7 +68,7 @@ impl Dir {
|
||||
/// does not need to be distinct for each invocation, but should correspond
|
||||
/// to a logical grouping of tests.
|
||||
pub fn new(name: &str) -> Dir {
|
||||
let id = NEXT_ID.fetch_add(1, Ordering::SeqCst);
|
||||
let id = NEXT_ID.fetch_add(1, Ordering::Relaxed);
|
||||
let root = env::current_exe()
|
||||
.unwrap()
|
||||
.parent()
|
||||
|
Reference in New Issue
Block a user