Enhance documentation on wake call memory ordering#157694
Conversation
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
I agree that" |
|
@Darksonn After thinking more, I think your wording is reasonable. Consider this a valid implementation of fn wak(&self){
do_something1(); // #1
self.flag.swap(1,AcqRel); // #2
do_something2(); // #3
}In this implementation, BTW, the expression |
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Alice Ryhl <aliceryhl@google.com>
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Alice Ryhl <aliceryhl@google.com>
Co-authored-by: Kevin Reid <kpreid@switchb.org>
Co-authored-by: Kevin Reid <kpreid@switchb.org>
View all comments