QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGC::AutoSuspendGuard Class Reference

RAII guard for an atomic suspend flag: sets on construction, clears on destruction. More...

#include <AutoSuspendGuard.h>

Public Member Functions

 AutoSuspendGuard (std::atomic< bool > &flag)
 AutoSuspendGuard (AutoSuspendGuard &&other) noexcept
AutoSuspendGuard & operator= (AutoSuspendGuard &&other) noexcept
 AutoSuspendGuard (const AutoSuspendGuard &)=delete
AutoSuspendGuard & operator= (const AutoSuspendGuard &)=delete
 ~AutoSuspendGuard ()

Detailed Description

RAII guard for an atomic suspend flag: sets on construction, clears on destruction.

Movable so it can live in moved-from owner objects (e.g. PendingOp variants).

Definition at line 11 of file AutoSuspendGuard.h.

Constructor & Destructor Documentation

◆ AutoSuspendGuard() [1/3]

QGC::AutoSuspendGuard::AutoSuspendGuard ( std::atomic< bool > & flag)
inlineexplicit

Definition at line 14 of file AutoSuspendGuard.h.

Referenced by AutoSuspendGuard(), AutoSuspendGuard(), operator=(), and operator=().

◆ AutoSuspendGuard() [2/3]

QGC::AutoSuspendGuard::AutoSuspendGuard ( AutoSuspendGuard && other)
inlinenoexcept

Definition at line 19 of file AutoSuspendGuard.h.

References AutoSuspendGuard().

◆ AutoSuspendGuard() [3/3]

QGC::AutoSuspendGuard::AutoSuspendGuard ( const AutoSuspendGuard & )
delete

References AutoSuspendGuard().

◆ ~AutoSuspendGuard()

QGC::AutoSuspendGuard::~AutoSuspendGuard ( )
inline

Definition at line 34 of file AutoSuspendGuard.h.

Member Function Documentation

◆ operator=() [1/2]

AutoSuspendGuard & QGC::AutoSuspendGuard::operator= ( AutoSuspendGuard && other)
inlinenoexcept

Definition at line 21 of file AutoSuspendGuard.h.

References AutoSuspendGuard().

◆ operator=() [2/2]

AutoSuspendGuard & QGC::AutoSuspendGuard::operator= ( const AutoSuspendGuard & )
delete

References AutoSuspendGuard().


The documentation for this class was generated from the following file: