threads: use explicit constructors where possible
This commit is contained in:
parent
ff2ca6982c
commit
ad2f3261de
@ -22,7 +22,7 @@
|
|||||||
namespace util { namespace threads {
|
namespace util { namespace threads {
|
||||||
class barrier {
|
class barrier {
|
||||||
public:
|
public:
|
||||||
barrier (unsigned count);
|
explicit barrier (unsigned count);
|
||||||
~barrier ();
|
~barrier ();
|
||||||
|
|
||||||
void wait (void);
|
void wait (void);
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
namespace util { namespace threads {
|
namespace util { namespace threads {
|
||||||
class semaphore {
|
class semaphore {
|
||||||
public:
|
public:
|
||||||
semaphore (unsigned value = 0);
|
explicit semaphore (unsigned value = 0);
|
||||||
~semaphore ();
|
~semaphore ();
|
||||||
|
|
||||||
void wait (void);
|
void wait (void);
|
||||||
|
Loading…
Reference in New Issue
Block a user