From dade1a033957df08777904cfbc33884f1bab9aab Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 9 Aug 2010 13:12:11 -0600 Subject: Get rid of a lot of unnecessary wakeups in dmnsn_wait_progress(). --- libdimension/progress-struct.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libdimension/progress-struct.h') 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 */ -- cgit v1.2.3