Skip to content

Commit

Permalink
The success ordering must be greater than the error ordering.
Browse files Browse the repository at this point in the history
Also, copy / paste fail
  • Loading branch information
carllerche authored and cramertj committed Mar 20, 2018
1 parent 1dacb2e commit 1c7fbe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/task_impl/atomic_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ impl AtomicTask {

loop {
let res = self.state.compare_exchange(
curr, WAITING, Release, Acquire);
curr, WAITING, AcqRel, Acquire);

match res {
Ok(_) => {
Expand Down

0 comments on commit 1c7fbe1

Please sign in to comment.