summaryrefslogtreecommitdiffstats
path: root/libdimension/progress-struct.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-08-09 13:12:11 -0600
committerTavian Barnes <tavianator@gmail.com>2010-08-09 13:25:07 -0600
commitdade1a033957df08777904cfbc33884f1bab9aab (patch)
tree9123321ce5363d43853c359aa7683172d3cb2a40 /libdimension/progress-struct.h
parent35c72fa8f2ccfd934e54185763c2c207963e1c57 (diff)
downloaddimension-dade1a033957df08777904cfbc33884f1bab9aab.tar.xz
Get rid of a lot of unnecessary wakeups in dmnsn_wait_progress().
Diffstat (limited to 'libdimension/progress-struct.h')
-rw-r--r--libdimension/progress-struct.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdimension/progress-struct.h b/libdimension/progress-struct.h
index a71cf63..06c63be 100644
--- a/libdimension/progress-struct.h
+++ b/libdimension/progress-struct.h
@@ -35,6 +35,10 @@ struct dmnsn_progress {
/* Condition variable for waiting for a particular amount of progress */
pthread_cond_t *cond;
pthread_mutex_t *mutex;
+
+ /* Minimum waited-on value */
+ volatile double min_wait;
+ volatile double *min_waitp; /* Hack for const values */
};
#endif /* DIMENSION_IMPL_PROGRESS_STRUCT_H */