Honeycomb  0.1
Component-Model Framework
Public Member Functions | List of all members
honey::thread::InterruptEnable Struct Reference

Enable / disable interrupts in the current thread's scope. More...

#include <Thread.h>

Inheritance diagram for honey::thread::InterruptEnable:
Inheritance graph
[legend]
Collaboration diagram for honey::thread::InterruptEnable:
Collaboration graph
[legend]

Public Member Functions

 InterruptEnable (bool enable)
 
 ~InterruptEnable ()
 
- Public Member Functions inherited from honey::mt::NoCopy
 NoCopy (const NoCopy &)=delete
 
NoCopyoperator= (const NoCopy &)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from honey::mt::NoCopy
 NoCopy ()=default
 

Detailed Description

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

Constructor & Destructor Documentation

honey::thread::InterruptEnable::InterruptEnable ( bool  enable)
honey::thread::InterruptEnable::~InterruptEnable ( )

The documentation for this struct was generated from the following files: