File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ pub enum SpinTryLockError {
41
41
/// This is modeled after [`sync::Mutex`] but instead of using `k_mutex` from Zephyr, it uses
42
42
/// `k_spinlock`. It's main advantage is that it is usable from IRQ context. However, it also is
43
43
/// uninterruptible, and prevents even IRQ handlers from running.
44
+ ///
45
+ /// [`sync::Mutex`]: crate::sync::Mutex
44
46
pub struct SpinMutex < T : ?Sized > {
45
47
inner : UnsafeCell < raw:: k_spinlock > ,
46
48
data : UnsafeCell < T > ,
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ pub mod critical {
50
50
//! This provides the underlying critical section crate, which is useful for external crates
51
51
//! that want this interface. However, it isn't a particularly hygienic interface to use. For
52
52
//! something a bit nicer, please see [`sync::SpinMutex`].
53
+ //!
54
+ //! [`sync::SpinMutex`]: crate::sync::SpinMutex
53
55
54
56
use core:: { ffi:: c_int, ptr:: addr_of_mut} ;
55
57
Original file line number Diff line number Diff line change @@ -65,6 +65,10 @@ impl Queue {
65
65
/// The timeout value can be [`Forever`] to block until there is a message, [`NoWait`] to check
66
66
/// and immediately return if there is no message, or a [`Duration`] to indicate a specific
67
67
/// timeout.
68
+ ///
69
+ /// [`Forever`]: crate::time::Forever
70
+ /// [`NoWait`]: crate::time::NoWait
71
+ /// [`Duration`]: crate::time::Duration
68
72
pub unsafe fn recv < T > ( & self , timeout : T ) -> * mut c_void
69
73
where T : Into < Timeout >
70
74
{
You can’t perform that action at this time.
0 commit comments