From c0284b69fe0ee82d1f604a1b6f0511b4f129b919 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 19 Aug 2011 00:05:22 -0600 Subject: Support thread cancelation, and handle ^C in the client. --- libdimension/dimension/progress.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libdimension/dimension') 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 @@ -37,6 +37,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. -- cgit v1.2.3