miosix::InterruptEnableLock Class Reference
[Kernel]

#include <kernel.h>

List of all members.

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:
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.


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

Generated on Mon Aug 30 00:05:00 2010 for Miosix by  doxygen 1.5.9