[−][src]Module git_features::interrupt
Process-global interrupt handling
This module contains facilities to globally request an interrupt, which will cause supporting computations to
abort once it is observed.
Such checks for interrupts are provided in custom implementations of various traits to transparently add interrupt
support to methods who wouldn't otherwise by injecting it. see Read
.
Structs
Read | A wrapper for implementors of |
ResetOnDrop | Useful if some parts of the program set the interrupt programmatically to cause others to stop, while assuring the interrupt state is reset at the end of the function to avoid other side-effects. |
Functions
init_handler | Does nothing, as the disable-interrupts feature is enabled while the interrupt-handler feature is not present. |
is_triggered | Returns always false if the disable-interrupts feature is present. |
reset | Sets the interrupt request to false, thus allowing those checking for |
trigger | Trigger an interrupt, signalling to those checking for |