Miosix  2.0alpha1
miosix::InterruptEnableLock Class Reference

#include <kernel.h>

Public Member Functions

 InterruptEnableLock (InterruptDisableLock &l)
 
 ~InterruptEnableLock ()
 

Detailed Description

This class allows to temporarily re enable interrpts in a scope where they are disabled with an InterruptDisableLock.
Example:

//Interrupts enabled
{
InterruptDisableLock dLock;
//Now interrupts disabled
{
InterruptEnableLock eLock(dLock);
//Now interrupts back enabled
}
//Now interrupts again disabled
}
//Finally interrupts enabled

Constructor & Destructor Documentation

miosix::InterruptEnableLock::InterruptEnableLock ( InterruptDisableLock l)
inline

Constructor, enables back interrupts.

Parameters
lthe 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.


The documentation for this class was generated from the following file: