diff options
Diffstat (limited to 'libdimension/dimension')
-rw-r--r-- | libdimension/dimension/progress.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libdimension/dimension/progress.h b/libdimension/dimension/progress.h index ff5fccd..e458c69 100644 --- a/libdimension/dimension/progress.h +++ b/libdimension/dimension/progress.h @@ -38,6 +38,12 @@ typedef struct dmnsn_progress dmnsn_progress; int dmnsn_finish_progress(dmnsn_progress *progress); /** + * Interrupt the execution of a background thread. + * @param[in,out] progress The background task to cancel. + */ +void dmnsn_cancel_progress(dmnsn_progress *progress); + +/** * Get the progress of the background task. * @param[in] progress The background task to examine. * @return The progress of the background task, out of 1.0. |