RADLib
RADical C++ application framework
RADCore::RADCancellationToken Class Reference

Shared cancellation token passed to long-running tasks. More...

#include <RADCore.h>

Public Member Functions

 RADCancellationToken ()
 Creates a non-cancelled standalone token. More...
 
bool isCancellationRequested () const
 Returns true when cancellation has been requested. More...
 

Friends

class RADCancellationSource
 

Detailed Description

Shared cancellation token passed to long-running tasks.

Constructor & Destructor Documentation

◆ RADCancellationToken()

RADCore::RADCancellationToken::RADCancellationToken ( )
inline

Creates a non-cancelled standalone token.

Member Function Documentation

◆ isCancellationRequested()

bool RADCore::RADCancellationToken::isCancellationRequested ( ) const
inline

Returns true when cancellation has been requested.

Friends And Related Function Documentation

◆ RADCancellationSource

friend class RADCancellationSource
friend

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