We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f5ea5c commit 19a73c3Copy full SHA for 19a73c3
rclrs/src/clock.rs
@@ -28,7 +28,7 @@ impl From<ClockType> for rcl_clock_type_t {
28
/// Struct that implements a Clock and wraps `rcl_clock_t`.
29
pub struct Clock {
30
_type: ClockType,
31
- _rcl_clock: Arc<Mutex<rcl_clock_t>>,
+ _rcl_clock: Mutex<rcl_clock_t>,
32
// TODO(luca) Implement jump callbacks
33
}
34
@@ -45,7 +45,7 @@ impl Clock {
45
46
Ok(Self {
47
_type: type_,
48
- _rcl_clock: Arc::new(Mutex::new(rcl_clock)),
+ _rcl_clock: Mutex::new(rcl_clock),
49
})
50
51
0 commit comments