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

fix autoreset_event::reset()

This commit is contained in:
Oliver Kowalke
2015-09-11 21:59:33 +02:00
parent f3b376224c
commit fe337fdf4c

View File

@@ -46,9 +46,8 @@ public:
void reset( std::chrono::steady_clock::time_point const& time_point) {
std::unique_lock< std::mutex > lk( mtx_);
if ( cnd_.wait_until( lk, time_point, [=](){ return flag_; }) ) {
flag_ = false;
}
cnd_.wait_until( lk, time_point, [=](){ return flag_; });
flag_ = false;
}
};