2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-17 01:32:32 +00:00

c++14 - autoreset_event

This commit is contained in:
Oliver Kowalke
2015-11-30 20:22:58 +01:00
parent 3c8547c161
commit 03e39b0400

View File

@@ -25,14 +25,12 @@ namespace detail {
class autoreset_event {
private:
std::mutex mtx_;
std::condition_variable cnd_;
bool flag_;
std::mutex mtx_{};
std::condition_variable cnd_{};
bool flag_{ false };
public:
autoreset_event() :
mtx_(), cnd_(), flag_( false) {
}
constexpr autoreset_event() = default;
autoreset_event( autoreset_event const&) = delete;
autoreset_event & operator=( autoreset_event const&) = delete;