From ad2f3261de88ebcf1221f7d26540d695d78607bb Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 11 Sep 2015 19:55:06 +1000 Subject: [PATCH] threads: use explicit constructors where possible --- threads/barrier.hpp | 2 +- threads/semaphore.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/threads/barrier.hpp b/threads/barrier.hpp index dccf29b8..87786643 100644 --- a/threads/barrier.hpp +++ b/threads/barrier.hpp @@ -22,7 +22,7 @@ namespace util { namespace threads { class barrier { public: - barrier (unsigned count); + explicit barrier (unsigned count); ~barrier (); void wait (void); diff --git a/threads/semaphore.hpp b/threads/semaphore.hpp index 1f3745ce..37510292 100644 --- a/threads/semaphore.hpp +++ b/threads/semaphore.hpp @@ -22,7 +22,7 @@ namespace util { namespace threads { class semaphore { public: - semaphore (unsigned value = 0); + explicit semaphore (unsigned value = 0); ~semaphore (); void wait (void);