summaryrefslogtreecommitdiffstats
path: root/libdimension/internal
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2015-12-23 12:24:52 -0500
committerTavian Barnes <tavianator@tavianator.com>2015-12-24 14:46:34 -0500
commit1a8e974d732b1ca345b3664fa86e95181d5acfce (patch)
treee4b8fc726a71af99628ff2d44435082ccf5b3b76 /libdimension/internal
parent7b04b02b6a9708573d25e09347aba766fbbc0138 (diff)
downloaddimension-master.tar.xz
concurrency/future: Store min_wait as an integer to avoid divisions.HEADmaster
Diffstat (limited to 'libdimension/internal')
-rw-r--r--libdimension/internal/future.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/internal/future.h b/libdimension/internal/future.h
index 047523e..5f25027 100644
--- a/libdimension/internal/future.h
+++ b/libdimension/internal/future.h
@@ -1,5 +1,5 @@
/*************************************************************************
- * Copyright (C) 2010-2014 Tavian Barnes <tavianator@tavianator.com> *
+ * Copyright (C) 2010-2015 Tavian Barnes <tavianator@tavianator.com> *
* *
* This file is part of The Dimension Library. *
* *
@@ -42,7 +42,7 @@ struct dmnsn_future {
pthread_cond_t cond;
/// Minimum waited-on value.
- double min_wait;
+ size_t min_wait;
/// Number of threads working on the future's background task.
unsigned int nthreads;