Honeycomb
0.1
Component-Model Framework
|
Enable / disable interrupts in the current thread's scope. More...
#include <Thread.h>
Public Member Functions | |
InterruptEnable (bool enable) | |
~InterruptEnable () | |
Public Member Functions inherited from honey::mt::NoCopy | |
NoCopy (const NoCopy &)=delete | |
NoCopy & | operator= (const NoCopy &)=delete |
Additional Inherited Members | |
Protected Member Functions inherited from honey::mt::NoCopy | |
NoCopy ()=default | |
Enable / disable interrupts in the current thread's scope.
Example:
//Interrupts enabled by default { thread::InterruptEnable _(false); //Disable interrupts in this scope } //Interrupts re-enabled
honey::thread::InterruptEnable::InterruptEnable | ( | bool | enable | ) |
honey::thread::InterruptEnable::~InterruptEnable | ( | ) |