miosix::RestartKernelLock Class Reference
[Kernel]

#include <kernel.h>

List of all members.

Public Member Functions

 RestartKernelLock (PauseKernelLock &l)
 ~RestartKernelLock ()


Detailed Description

This class allows to temporarily restart kernel in a scope where it is paused with an InterruptDisableLock.
Example:
 //Kernel started
 {
     PauseKernelLock dLock;

     //Now kernel paused

     {
         RestartKernelLock eLock(dLock);

         //Now kernel back started
     }

     //Now kernel again paused
 }
 //Finally kernel started

Constructor & Destructor Documentation

miosix::RestartKernelLock::RestartKernelLock ( PauseKernelLock l  )  [inline]

Constructor, restarts kernel.

Parameters:
l the PauseKernelLock 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 PauseKernelLock

miosix::RestartKernelLock::~RestartKernelLock (  )  [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