summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-08-19 00:05:22 -0600
committerTavian Barnes <tavianator@gmail.com>2011-08-19 00:05:22 -0600
commitc0284b69fe0ee82d1f604a1b6f0511b4f129b919 (patch)
tree921fd2dc329cbf01383cc3cdd4e30e6954318775 /libdimension/dimension
parent8ba39e9ea0ccfb08edaa9179e4893acb6c478aad (diff)
downloaddimension-c0284b69fe0ee82d1f604a1b6f0511b4f129b919.tar.xz
Support thread cancelation, and handle ^C in the client.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/progress.h6
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.