Skip to main content

pamoja_watchdog_new

Function pamoja_watchdog_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_watchdog_new( timeout: f32, ) -> *mut PamojaWatchdog
Expand description

Creates a watchdog that expires after timeout without being fed.

A timeout that is not a number is taken as 0, so the watchdog expires rather than never.

§Returns

A freshly fed watchdog; the caller must release it with pamoja_watchdog_free.

§Safety

The returned handle must be freed exactly once.