diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-08-09 13:12:11 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-08-09 13:25:07 -0600 |
commit | dade1a033957df08777904cfbc33884f1bab9aab (patch) | |
tree | 9123321ce5363d43853c359aa7683172d3cb2a40 /libdimension/progress-struct.h | |
parent | 35c72fa8f2ccfd934e54185763c2c207963e1c57 (diff) | |
download | dimension-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.h | 4 |
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 */ |