|
QGroundControl
Ground Control Station for MAVLink Drones
|
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 |
Issues tokens and cancels them all at once. Copies share the cancellation.
Definition at line 31 of file GPSCancellation.h.
| GPSCancelSource::GPSCancelSource | ( | ) |
Definition at line 25 of file GPSCancellation.cc.
| 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().
| bool GPSCancelSource::isCancelled | ( | ) | const |
Definition at line 51 of file GPSCancellation.cc.
| GPSCancelToken GPSCancelSource::token | ( | ) | const |
Definition at line 29 of file GPSCancellation.cc.