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:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user