From 1a8e974d732b1ca345b3664fa86e95181d5acfce Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 23 Dec 2015 12:24:52 -0500 Subject: concurrency/future: Store min_wait as an integer to avoid divisions. --- libdimension/internal/future.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdimension/internal') 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 * + * Copyright (C) 2010-2015 Tavian Barnes * * * * 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; -- cgit v1.2.3