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 729fd3c commit 93b10c5Copy full SHA for 93b10c5
rclrs/src/context.rs
@@ -83,10 +83,11 @@ impl Context {
83
/// # Ok::<(), RclrsError>(())
84
/// ```
85
pub fn domain_id(&self) -> usize {
86
- let mut rcl_context = self.rcl_context_mtx.lock().unwrap();
87
let mut domain_id: usize = 0;
+
88
#[cfg(not(ros_distro = "foxy"))]
89
let ret = unsafe {
90
+ let mut rcl_context = self.rcl_context_mtx.lock().unwrap();
91
// SAFETY: No preconditions for this function.
92
rcl_context_get_domain_id(&mut *rcl_context, &mut domain_id)
93
};
0 commit comments