diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-05-24 07:14:59 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-24 07:14:59 +0000 |
| commit | 5fe63502787baa740cb5d99d535044cf72f06d54 (patch) | |
| tree | ef7676d4fcad579efbbd2f8325bf68f0e9b06a14 /src/export.rs | |
| parent | 1a24c725d2c6889b68056f4804b588611271c1fd (diff) | |
| parent | b15bda2d39e708c23027264dfa1acd72deb0b59b (diff) | |
Merge #643
643: Fix clash with defmt r=AfoHT a=korken89
Fixes #642
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'src/export.rs')
| -rw-r--r-- | src/export.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/export.rs b/src/export.rs index 42f3fe2..6e1e4a6 100644 --- a/src/export.rs +++ b/src/export.rs @@ -66,7 +66,9 @@ impl Barrier { } pub fn wait(&self) { - while !self.inner.load(Ordering::Acquire) {} + while !self.inner.load(Ordering::Acquire) { + core::hint::spin_loop() + } } } |
