diff options
author | 2021-11-03 21:44:57 +0100 | |
---|---|---|
committer | 2021-11-03 21:44:57 +0100 | |
commit | d0a3d270948f870fd7add51149448c2164b3193d (patch) | |
tree | 85e388104edb9c63c63ca79cc2e819313bd51a40 /src/lib.rs | |
parent | b138cc163148ba307cc9548e66efbf90a6482d25 (diff) | |
download | rtic-lockall_take2.tar.gz rtic-lockall_take2.tar.zst rtic-lockall_take2.zip |
wip tests do pass, Mutex basedlockall_take2
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -105,11 +105,11 @@ impl<T> RacyCell<T> { unsafe impl<T> Sync for RacyCell<T> {} -/// Should be moved to `rtic-core` -pub trait MutexStruct { - /// Data protected by the mutex - type T; +// /// Should be moved to `rtic-core` +// pub trait MutexStruct { +// /// Data protected by the mutex +// type T; - /// Creates a critical section and grants temporary access to the protected data - fn lock<R>(&mut self, f: impl FnOnce(&mut Self::T) -> R) -> R; -} +// /// Creates a critical section and grants temporary access to the protected data +// fn lock<R>(&mut self, f: impl FnOnce(&mut Self::T) -> R) -> R; +// } |