Skip to content

Commit 19a73c3

Browse files
Change _rcl_clock to just Mutex
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
1 parent 1f5ea5c commit 19a73c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rclrs/src/clock.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl From<ClockType> for rcl_clock_type_t {
2828
/// Struct that implements a Clock and wraps `rcl_clock_t`.
2929
pub struct Clock {
3030
_type: ClockType,
31-
_rcl_clock: Arc<Mutex<rcl_clock_t>>,
31+
_rcl_clock: Mutex<rcl_clock_t>,
3232
// TODO(luca) Implement jump callbacks
3333
}
3434

@@ -45,7 +45,7 @@ impl Clock {
4545
}
4646
Ok(Self {
4747
_type: type_,
48-
_rcl_clock: Arc::new(Mutex::new(rcl_clock)),
48+
_rcl_clock: Mutex::new(rcl_clock),
4949
})
5050
}
5151

0 commit comments

Comments
 (0)