summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/future.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/dimension/future.h')
-rw-r--r--libdimension/dimension/future.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libdimension/dimension/future.h b/libdimension/dimension/future.h
index 9f1f14a..9ba28b1 100644
--- a/libdimension/dimension/future.h
+++ b/libdimension/dimension/future.h
@@ -51,6 +51,13 @@ void dmnsn_future_cancel(dmnsn_future *future);
double dmnsn_future_progress(const dmnsn_future *future);
/**
+ * Find out if a background task is finished.
+ * @param[in] future The background task to examine.
+ * @return true if the task is done, false otherwise.
+ */
+bool dmnsn_future_is_done(const dmnsn_future *future);
+
+/**
* Wait for a certain amount of progress. Always use this rather than
* spinlocking.
* @param[in] future The background task to monitor.