QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSCancelCallback Class Reference

#include <GPSCancellation.h>

Public Member Functions

 GPSCancelCallback (const GPSCancelToken &token, std::function< void()> callback)
 
 ~GPSCancelCallback ()
 

Detailed Description

Runs callback on the cancelling thread when token is cancelled, or at once on this thread if it already is. Destruction waits for a running invocation, so the callback may use objects that outlive this one. It must not be destroyed from a callback of the same token.

Definition at line 51 of file GPSCancellation.h.

Constructor & Destructor Documentation

◆ GPSCancelCallback()

GPSCancelCallback::GPSCancelCallback ( const GPSCancelToken &  token,
std::function< void()>  callback 
)

Definition at line 56 of file GPSCancellation.cc.

◆ ~GPSCancelCallback()

GPSCancelCallback::~GPSCancelCallback ( )

Definition at line 73 of file GPSCancellation.cc.


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