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

Issues tokens and cancels them all at once. Copies share the cancellation. More...

#include <GPSCancellation.h>

Public Member Functions

 GPSCancelSource ()
 
GPSCancelToken token () const
 
bool cancel ()
 
bool isCancelled () const
 

Detailed Description

Issues tokens and cancels them all at once. Copies share the cancellation.

Definition at line 31 of file GPSCancellation.h.

Constructor & Destructor Documentation

◆ GPSCancelSource()

GPSCancelSource::GPSCancelSource ( )

Definition at line 25 of file GPSCancellation.cc.

Member Function Documentation

◆ cancel()

bool GPSCancelSource::cancel ( )

Cancels every token of this source and runs their callbacks on this thread before returning. Returns true only for the call that cancelled. Safe to call from any thread.

Definition at line 34 of file GPSCancellation.cc.

Referenced by GPSReceiverWorker::stop().

◆ isCancelled()

bool GPSCancelSource::isCancelled ( ) const

Definition at line 51 of file GPSCancellation.cc.

◆ token()

GPSCancelToken GPSCancelSource::token ( ) const

Definition at line 29 of file GPSCancellation.cc.


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