Function compiler_interrupts::deregister_enable_hook[][src]

pub unsafe fn deregister_enable_hook()
Expand description

De-registers the hook when enabling Compiler Interrupts.

This function removes the given hook from register_enable_hook.

Note

This function is thread-specific, which means it only de-registers on the thread they called on.

This function should not be called multiple times. Consecutive calls will do nothing as the hook has already been removed.

Safety

This function mutates a thread-local static variable which uses for the hook. Thread unsafety will not be introduced. Rust considers mutating static variable unsafe.