1
Fork 0
Co-authored-by: yvt <i@yvt.jp>
This commit is contained in:
Ibraheem Ahmed 2022-10-05 16:33:04 -04:00 committed by GitHub
parent 9de1d7c10d
commit 1bae661dbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -880,7 +880,7 @@ pub fn sleep(dur: Duration) {
/// * It can be implemented very efficiently on many platforms.
///
/// # Memory Orderings
///
///
/// Calls to `park` _synchronize-with_ calls to `unpark`, meaning that memory
/// operations performed before a call to `unpark` are made visible to the thread that
/// consumes the token and returns from `park`. Note that all `park` and `unpark`
@ -890,7 +890,7 @@ pub fn sleep(dur: Duration) {
/// In atomic ordering terms, `unpark` performs a `Release` operation and `park`
/// performs the corresponding `Acquire` operation. Calls to `unpark` for the same
/// thread form a [release sequence].
///
///
/// Notice that being unblocked does not imply any synchronization with someone that
/// unparked this thread, it could also be spurious. For example, it would be a valid,
/// but inefficient, implementation to make both park and unpark return immediately