#include <cafe/os/OSInterrupts.h> BOOL OSDisableInterrupts(void);
TRUE if interrupts were previously enabled, or
FALSE if interrupts were previously disabled.
Disables interrupt delivery for the current processor core in the
current process. Other cores are unaffected. This can be helpful to create critical
sections, etc., to prevent priority-inversion issues.
takes few processor cycles (2+call). The result returns whether interrupts are currently
enabled. The result is typically passed as the input parameter to
A common usage pattern is described below.
2013/05/08 Automated cleanup pass.
2012/07/31 Cleanup Pass.
2012/04/12 Initial version.