mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-02-02 14:36:34 +11:00
Fixed error in spinlock's documentation
This commit is contained in:
parent
88fbc38f8b
commit
111b355da2
1 changed files with 1 additions and 0 deletions
|
@ -150,6 +150,7 @@ macro_rules! impl_spinlock {
|
|||
/// **warning**: These spinlocks are not re-entrant, meaning that the following code will cause a deadlock:
|
||||
///
|
||||
/// ```no_run
|
||||
/// use rp2040_hal::sio::{Spinlock0, Spinlock};
|
||||
/// let lock_1 = Spinlock0::claim();
|
||||
/// let lock_2 = Spinlock0::claim(); // deadlock here
|
||||
/// ```
|
||||
|
|
Loading…
Add table
Reference in a new issue