mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-08-27 10:23:55 -07: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
@@ -527,7 +527,7 @@ mod tests {
|
||||
|
||||
let tmpdir = env::temp_dir();
|
||||
for _ in 0..TRIES {
|
||||
let count = COUNTER.fetch_add(1, Ordering::SeqCst);
|
||||
let count = COUNTER.fetch_add(1, Ordering::Relaxed);
|
||||
let path = tmpdir.join("rust-ignore").join(count.to_string());
|
||||
if path.is_dir() {
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user