void arRestore( BOOL PreviousLockState );
The previous state of the interrupt enable flag, as returned by the arLock function.
This function restores the global interrupt (preemption) state based on the value provided in PreviousLockState.
The arLock function disables interrupts and returns their state prior to disabling. By passing this returned value to arRestore, the system ensures that interrupts are only re-enabled if they were originally enabled before the lock was acquired. This mechanism supports the nesting of arLock and arRestore calls, allowing for the safe execution of nested critical sections.
| Version: | 1.0 |
|---|---|
| Header file: | AR_API.h |
| See also: | arLock, BOOL, context switching, FALSE, TRUE |