#include <kernel.h>
Public Member Functions | |
InterruptEnableLock (InterruptDisableLock &l) | |
~InterruptEnableLock () |
//Interrupts enabled { InterruptDisableLock dLock; //Now interrupts disabled { InterruptEnableLock eLock(dLock); //Now interrupts back enabled } //Now interrupts again disabled } //Finally interrupts enabled
miosix::InterruptEnableLock::InterruptEnableLock | ( | InterruptDisableLock & | l | ) | [inline] |
Constructor, enables back interrupts.
l | the InteruptDisableLock that disabled interrupts. Note that this parameter is not used internally. It is only required to prevent erroneous use of this class by making an instance of it without an active InterruptEnabeLock |
miosix::InterruptEnableLock::~InterruptEnableLock | ( | ) | [inline] |
Destructor. Disable back interrupts.