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

#include <GPSCancellation.h>

Classes

struct  State
 

Public Member Functions

 GPSCancelToken ()=default
 A token that is never cancelled.
 
bool isCancelled () const
 Safe to call from any thread.
 

Friends

class GPSCancelSource
 
class GPSCancelCallback
 

Detailed Description

Cooperative cancellation of a receiver session, shared by the thread that stops the session and the worker that runs it. It stands in for std::stop_token, which libc++ before LLVM 20 offers only with -fexperimental-library.

Definition at line 10 of file GPSCancellation.h.

Constructor & Destructor Documentation

◆ GPSCancelToken()

GPSCancelToken::GPSCancelToken ( )
default

A token that is never cancelled.

Member Function Documentation

◆ isCancelled()

bool GPSCancelToken::isCancelled ( ) const

Safe to call from any thread.

Definition at line 20 of file GPSCancellation.cc.

Referenced by GPSTransport::isCancelled(), and GPSCommandChannel::write().

Friends And Related Symbol Documentation

◆ GPSCancelCallback

friend class GPSCancelCallback
friend

Definition at line 21 of file GPSCancellation.h.

◆ GPSCancelSource

friend class GPSCancelSource
friend

Definition at line 20 of file GPSCancellation.h.


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