Merge pull request #1572 from whitequark/bdma-blocking_wait-stop
BDMA: request stop after busy loop in blocking_wait()
This commit is contained in:
commit
3c70f799a2
@ -323,6 +323,7 @@ impl<'a, C: Channel> Transfer<'a, C> {
|
||||
|
||||
pub fn blocking_wait(mut self) {
|
||||
while self.is_running() {}
|
||||
self.request_stop();
|
||||
|
||||
// "Subsequent reads and writes cannot be moved ahead of preceding reads."
|
||||
fence(Ordering::SeqCst);
|
||||
|
Loading…
Reference in New Issue
Block a user