Function timer_delete
pub unsafe fn timer_delete(timer_id: i32) -> Result<(), i32> ⓘ
Available on crate feature
dep_nc
only.Expand description
Delete a per-process timer
§Examples
let mut timer_id = nc::timer_t::default();
let ret = unsafe { nc::timer_create(nc::CLOCK_MONOTONIC, None, &mut timer_id) };
assert!(ret.is_ok());
let ret = unsafe { nc::timer_delete(timer_id) };
assert!(ret.is_ok());