Lines Matching +full:embedded +full:- +full:sync
1 // SPDX-License-Identifier: GPL-2.0
11 use crate::sync::Arc;
12 use crate::sync::ArcBorrow;
29 fn cancel(&mut self) -> bool {
54 T: Send + Sync,
64 ) -> ArcHrTimerHandle<T> {
66 // - We keep `self` alive by wrapping it in a handle below.
67 // - Since we generate the pointer passed to `start` from a valid
82 unsafe extern "C" fn run(ptr: *mut bindings::hrtimer) -> bindings::hrtimer_restart {
87 // queuing the timer, so it is a `HrTimer<T>` embedded in a `T`.
91 // - `data_ptr` is derived form the pointer to the `T` that was used to
93 // - As per the safety requirements of the trait `HrTimerHandle`, the
98 // - We own one refcount in the `ArcTimerHandle` associated with this
104 // - By C API contract `timer_ptr` is the pointer that we passed when queuing the timer, so
105 // it is a valid pointer to a `HrTimer<T>` embedded in a `T`.
106 // - We are within `RawHrTimerCallback::run`