Function gstd::critical::take_and_execute

source ·
pub fn take_and_execute()
Expand description

Removes current hook and executes it.

Don’t use it at all if you use #[gstd::async_init] or #[gstd::async_main].

Must be called inside handle_signal:

use gstd::critical;

#[no_mangle]
extern "C" fn handle_signal() {
    critical::take_and_execute();
}