Merge pull request #1572 from whitequark/bdma-blocking_wait-stop

BDMA: request stop after busy loop in blocking_wait()
This commit is contained in:
Dario Nieuwenhuis 2023-06-19 09:55:07 +00:00 committed by GitHub
commit 3c70f799a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,6 +323,7 @@ impl<'a, C: Channel> Transfer<'a, C> {
pub fn blocking_wait(mut self) { pub fn blocking_wait(mut self) {
while self.is_running() {} while self.is_running() {}
self.request_stop();
// "Subsequent reads and writes cannot be moved ahead of preceding reads." // "Subsequent reads and writes cannot be moved ahead of preceding reads."
fence(Ordering::SeqCst); fence(Ordering::SeqCst);