Miosix  2.01
miosix::RestartKernelLock Class Reference

#include <kernel.h>

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