Skip to main content

init_progress

Function init_progress 

Source
pub fn init_progress()
Expand description

Initialize idevicerestore’s progress subsystem before a restore.

Several of its progress functions (e.g. finalize_progress, called from dfu_client_free) lock a global mutex without the lazy-init guard that set_progress/register_progress run. On Windows that mutex is a CRITICAL_SECTION, so locking it uninitialized is an access violation. register_progress with a NULL label runs the init and returns without adding an entry.