mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 14:58:53 +08:00
Merge pull request #92 from UAVCAN/for_upstream_nuttx_changes_2
Do Not merge - This is needed to work with the latest upstream nuttx
This commit is contained in:
@@ -109,12 +109,12 @@ struct CriticalSectionLocker
|
||||
const irqstate_t flags_;
|
||||
|
||||
CriticalSectionLocker()
|
||||
: flags_(irqsave())
|
||||
: flags_(enter_critical_section())
|
||||
{ }
|
||||
|
||||
~CriticalSectionLocker()
|
||||
{
|
||||
irqrestore(flags_);
|
||||
leave_critical_section(flags_);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user