Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions
mbed::CriticalSectionLock Class Reference

#include <CriticalSectionLock.h>

Public Member Functions

void lock ()
 
void unlock ()
 

Detailed Description

RAII object for disabling, then restoring, interrupt state Usage:

void f() {
// some code here
{
CriticalSectionLock lock;
// Code in this block will run with interrupts disabled
}
// interrupts will be restored to their previous state
}

Member Function Documentation

void mbed::CriticalSectionLock::lock ( void  )
inline

Mark the start of a critical section

void mbed::CriticalSectionLock::unlock ( void  )
inline

Mark the end of a critical section


The documentation for this class was generated from the following file:
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.