Mark Timer as sync

Since all accesses are read-only there is no synchronizing to be done.
This commit is contained in:
contradict 2021-10-20 12:38:30 -07:00 committed by 9names
parent 4c4d12e23c
commit 97079489ef

View file

@ -11,6 +11,9 @@ pub struct Timer {
timer: TIMER,
}
// Safety: All access is read-only.
unsafe impl Sync for Timer {}
impl Timer {
/// Create a new [`Timer`]
pub fn new(timer: TIMER, resets: &mut RESETS) -> Self {