summaryrefslogtreecommitdiff
path: root/boost/fiber/barrier.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fiber/barrier.hpp')
-rw-r--r--boost/fiber/barrier.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/boost/fiber/barrier.hpp b/boost/fiber/barrier.hpp
index debe7d725a..31a2cd617d 100644
--- a/boost/fiber/barrier.hpp
+++ b/boost/fiber/barrier.hpp
@@ -24,19 +24,19 @@ namespace fibers {
class BOOST_FIBERS_DECL barrier {
private:
- std::size_t initial_;
- std::size_t current_;
- bool cycle_{ true };
- mutex mtx_{};
- condition_variable cond_{};
+ std::size_t initial_;
+ std::size_t current_;
+ std::size_t cycle_{ 0 };
+ mutex mtx_{};
+ condition_variable cond_{};
public:
- explicit barrier( std::size_t);
+ explicit barrier( std::size_t);
barrier( barrier const&) = delete;
barrier & operator=( barrier const&) = delete;
- bool wait();
+ bool wait();
};
}}