summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/future.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdimension/future.c b/libdimension/future.c
index 622d40e..c344a8e 100644
--- a/libdimension/future.c
+++ b/libdimension/future.c
@@ -63,6 +63,8 @@ dmnsn_future_join(dmnsn_future *future)
int retval = -1;
if (future) {
+ dmnsn_assert(future->npaused == 0, "Attempt to join future while paused");
+
/* Get the thread's return value */
dmnsn_join_thread(future->thread, &ptr);
if (ptr && ptr != PTHREAD_CANCELED) {