mirror of https://github.com/ARMmbed/mbed-os.git
Remove the deprecated CriticalSectionLock APIs
parent
0286e3c325
commit
b3ba0905ac
|
@ -59,24 +59,6 @@ public:
|
||||||
|
|
||||||
~CriticalSectionLock();
|
~CriticalSectionLock();
|
||||||
|
|
||||||
/** Mark the start of a critical section
|
|
||||||
* @deprecated This function is inconsistent with RAII and is being removed in the future. Replaced by static function CriticalSectionLock::enable.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
MBED_DEPRECATED_SINCE("mbed-os-5.8",
|
|
||||||
"This function is inconsistent with RAII and is being removed in the future."
|
|
||||||
"Replaced by static function CriticalSectionLock::enable.")
|
|
||||||
void lock();
|
|
||||||
|
|
||||||
/** Mark the end of a critical section
|
|
||||||
* @deprecated This function is inconsistent with RAII and is being removed in the future. Replaced by static function CriticalSectionLock::enable.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
MBED_DEPRECATED_SINCE("mbed-os-5.8",
|
|
||||||
"This function is inconsistent with RAII and is being removed in the future."
|
|
||||||
"Replaced by static function CriticalSectionLock::disable.")
|
|
||||||
void unlock();
|
|
||||||
|
|
||||||
/** Mark the start of a critical section
|
/** Mark the start of a critical section
|
||||||
*/
|
*/
|
||||||
static void enable();
|
static void enable();
|
||||||
|
|
|
@ -30,16 +30,6 @@ CriticalSectionLock::~CriticalSectionLock()
|
||||||
core_util_critical_section_exit();
|
core_util_critical_section_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CriticalSectionLock::lock()
|
|
||||||
{
|
|
||||||
core_util_critical_section_enter();
|
|
||||||
}
|
|
||||||
|
|
||||||
void CriticalSectionLock::unlock()
|
|
||||||
{
|
|
||||||
core_util_critical_section_exit();
|
|
||||||
}
|
|
||||||
|
|
||||||
void CriticalSectionLock::enable()
|
void CriticalSectionLock::enable()
|
||||||
{
|
{
|
||||||
core_util_critical_section_enter();
|
core_util_critical_section_enter();
|
||||||
|
|
Loading…
Reference in New Issue