diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2013-03-19 20:20:03 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2013-03-19 20:20:03 -0400 |
commit | 4f9122668d0edd36fbf2ef683d7dafd6b77ac24f (patch) | |
tree | deffede27e1025ee3a72a76e7dae7b4681d32eee /libdimension/future-impl.h | |
parent | a842f979c219ef245b09c4607aacc36fbca3f66b (diff) | |
download | dimension-4f9122668d0edd36fbf2ef683d7dafd6b77ac24f.tar.xz |
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.
Diffstat (limited to 'libdimension/future-impl.h')
-rw-r--r-- | libdimension/future-impl.h | 6 |
1 files changed, 3 insertions, 3 deletions
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; }; |