Axmol 3.0.0-89d6d9a
Loading...
Searching...
No Matches
CancellationSource Class Reference

Controller used to request cancellation for one or more jobs. More...

#include <JobSystem.h>

Public Member Functions

CancellationToken token () const
 Returns a token linked to this source.
void requestCancel () const
 Requests cooperative cancellation for all linked tokens.
bool isCancellationRequested () const
 Returns true after cancellation has been requested.

Detailed Description

Controller used to request cancellation for one or more jobs.

External code owns the source and passes token() to jobs that belong to the same logical operation. Calling requestCancel() notifies all linked tokens.


The documentation for this class was generated from the following file:
  • JobSystem.h