Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Hobbyking_Cheetah_Compact Hobbyking_Cheetah_Compact_DRV8323_14bit Hobbyking_Cheetah_Compact_DRV8323_V51_201907 HKC_MiniCheetah ... more
Fork of mbed-dev by
CriticalSectionLock Class Reference
RAII object for disabling, then restoring, interrupt state Usage: More...
#include <CriticalSectionLock.h>
Public Member Functions | |
| void | lock () |
| Mark the start of a critical section. | |
| void | unlock () |
| Mark the end of a critical section. | |
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 }
Definition at line 39 of file CriticalSectionLock.h.
Member Function Documentation
| void lock | ( | void | ) |
Mark the start of a critical section.
Definition at line 54 of file CriticalSectionLock.h.
| void unlock | ( | void | ) |
Mark the end of a critical section.
Definition at line 62 of file CriticalSectionLock.h.
Generated on Thu Jul 14 2022 04:46:53 by
1.7.2
