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
 
AutoSuspendGuardoperator= (AutoSuspendGuard &&other) noexcept
 
 AutoSuspendGuard (const AutoSuspendGuard &)=delete
 
AutoSuspendGuardoperator= (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.

◆ AutoSuspendGuard() [2/3]

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

Definition at line 19 of file AutoSuspendGuard.h.

◆ AutoSuspendGuard() [3/3]

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

◆ ~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.

◆ operator=() [2/2]

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

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