Skip to content

Commit

Permalink
Fix a bug in seq_lock_wide (closes #595)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeehoonkang committed Nov 12, 2020
1 parent 03ba964 commit 4b1ce50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crossbeam-utils/src/atomic/seq_lock_wide.rs
@@ -1,3 +1,4 @@
use core::mem;
use core::sync::atomic::{self, AtomicUsize, Ordering};

use crate::Backoff;
Expand Down Expand Up @@ -110,6 +111,7 @@ impl SeqLockWriteGuard {
#[inline]
pub fn abort(self) {
self.lock.state_lo.store(self.state_lo, Ordering::Release);
mem::forget(self);
}
}

Expand Down

0 comments on commit 4b1ce50

Please sign in to comment.