#include <kernel.h>
Public Member Functions | |
RestartKernelLock (PauseKernelLock &l) | |
~RestartKernelLock () |
//Kernel started { PauseKernelLock dLock; //Now kernel paused { RestartKernelLock eLock(dLock); //Now kernel back started } //Now kernel again paused } //Finally kernel started
miosix::RestartKernelLock::RestartKernelLock | ( | PauseKernelLock & | l | ) | [inline] |
Constructor, restarts kernel.
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.