threads: use explicit constructors where possible

This commit is contained in:
Danny Robson 2015-09-11 19:55:06 +10:00
parent ff2ca6982c
commit ad2f3261de
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
namespace util { namespace threads {
class barrier {
public:
barrier (unsigned count);
explicit barrier (unsigned count);
~barrier ();
void wait (void);

View File

@ -22,7 +22,7 @@
namespace util { namespace threads {
class semaphore {
public:
semaphore (unsigned value = 0);
explicit semaphore (unsigned value = 0);
~semaphore ();
void wait (void);