Skip to main content

pio_apply_updates

Function pio_apply_updates 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_apply_updates( module: *mut PioModule, updates: *const *const PioCalculationUpdate, updates_len: usize, error: *mut *mut PioError, ) -> *mut PioUpdateReport
Expand description

Apply a complete typed update batch atomically.

Owner rooted handles obtained before the call (values, networks, collection entries, artifacts) keep the pre-update module alive. Plain view structs read from this module handle (PioStringView, PioModuleSourceView, history and source map views) are invalidated by a successful call and must be read again. The caller must hold exclusive access to module for the duration of the call: no concurrent call of any kind on this handle, including retain.

ยงSafety

Pointers and handles must satisfy the crate-level safety requirements. The module handle requires exclusive access, including exclusion of retain.