Skip to content

Commit c00b5d3

Browse files
author
Stjepan Glavina
committed
Use SeqCst
1 parent 312f488 commit c00b5d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parking.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ impl Parker {
175175
/// p.park();
176176
/// ```
177177
pub fn unpark(&self) {
178-
if self.inner.unpark() && self.io.load(Ordering::Acquire) {
178+
if self.inner.unpark() && self.io.load(Ordering::SeqCst) {
179179
Reactor::get().notify();
180180
}
181181
}
@@ -315,7 +315,7 @@ impl Unparker {
315315
/// p.park();
316316
/// ```
317317
pub fn unpark(&self) {
318-
if self.inner.unpark() && self.io.load(Ordering::Acquire) {
318+
if self.inner.unpark() && self.io.load(Ordering::SeqCst) {
319319
Reactor::get().notify();
320320
}
321321
}

0 commit comments

Comments
 (0)