|
Axmol 3.0.0-89d6d9a
|
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. | |
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.