From 4f9122668d0edd36fbf2ef683d7dafd6b77ac24f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 19 Mar 2013 20:20:03 -0400 Subject: Don't use pointer indirection to emulate mutable for futures. We can just cast away the const, as they're all on the heap anyway. --- libdimension/future-impl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libdimension/future-impl.h') diff --git a/libdimension/future-impl.h b/libdimension/future-impl.h index 953d5a4..4ec6f75 100644 --- a/libdimension/future-impl.h +++ b/libdimension/future-impl.h @@ -43,11 +43,11 @@ struct dmnsn_future { pthread_t thread; /** Mutex to guard progress and total. */ - pthread_mutex_t *mutex; + pthread_mutex_t mutex; /** Condition variable for waiting for a particular amount of progress. */ - pthread_cond_t *cond; + pthread_cond_t cond; /** Minimum waited-on value. */ - double *min_wait; + double min_wait; }; -- cgit v1.2.3