rad  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
rad::cii::CancellationToken Class Reference

#include <utils.hpp>

Public Member Functions

 CancellationToken ()
 
 CancellationToken (const CancellationToken &)=default
 
CancellationTokenoperator= (const CancellationToken &)=default
 
void Cancel ()
 
bool IsCancelled () const
 
 CancellationToken ()
 
 CancellationToken (const CancellationToken &)=default
 
CancellationTokenoperator= (const CancellationToken &)=default
 
void Cancel ()
 
bool IsCancelled () const
 
 CancellationToken ()
 
 CancellationToken (const CancellationToken &)=default
 
CancellationTokenoperator= (const CancellationToken &)=default
 
void Cancel ()
 
bool IsCancelled () const
 

Detailed Description

This class can be used to notify when a 'service' has been cancelled.

For example it is returned by the RouteReply() function to give the possibility to the user to check when a request has been cancelled and there is no point to keep waiting for a reply.

Remarks
This is thread compatible.

Constructor & Destructor Documentation

rad::cii::CancellationToken::CancellationToken ( )
inline

This constructor initialize the cancellation token to false.

rad::cii::CancellationToken::CancellationToken ( const CancellationToken )
default
rad::cii::CancellationToken::CancellationToken ( )
inline

This constructor initialize the cancellation token to false.

rad::cii::CancellationToken::CancellationToken ( const CancellationToken )
default
rad::cii::CancellationToken::CancellationToken ( )
inline

This constructor initialize the cancellation token to false.

rad::cii::CancellationToken::CancellationToken ( const CancellationToken )
default

Member Function Documentation

void rad::cii::CancellationToken::Cancel ( )
inline

This method can be used to notify that the "service" has been cancelled.

void rad::cii::CancellationToken::Cancel ( void  )
inline

This method can be used to notify that the "service" has been cancelled.

void rad::cii::CancellationToken::Cancel ( void  )
inline

This method can be used to notify that the "service" has been cancelled.

bool rad::cii::CancellationToken::IsCancelled ( ) const
inline

This method can be used to check whether the "service" has been cancelled.

Returns
true If the service has been cancelled, false otherwise.
bool rad::cii::CancellationToken::IsCancelled ( ) const
inline

This method can be used to check whether the "service" has been cancelled.

Returns
true If the service has been cancelled, false otherwise.
bool rad::cii::CancellationToken::IsCancelled ( ) const
inline

This method can be used to check whether the "service" has been cancelled.

Returns
true If the service has been cancelled, false otherwise.
CancellationToken& rad::cii::CancellationToken::operator= ( const CancellationToken )
default
CancellationToken& rad::cii::CancellationToken::operator= ( const CancellationToken )
default
CancellationToken& rad::cii::CancellationToken::operator= ( const CancellationToken )
default

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