validate close in waiter

This commit is contained in:
mutouyun 2021-09-20 22:03:36 +08:00
parent ed8b1fd608
commit b8f5e2ba6f
2 changed files with 8 additions and 2 deletions

View File

@ -42,8 +42,8 @@ public:
}
void close() noexcept {
// cond_.close();
// lock_.close();
cond_.close();
lock_.close();
}
template <typename F>
@ -64,6 +64,9 @@ public:
std::lock_guard<ipc::sync::mutex>{lock_}; // barrier
return cond_.broadcast();
}
void quit_waiting() {
}
};
} // namespace detail

View File

@ -34,4 +34,7 @@ TEST(Waiter, broadcast) {
}
}
TEST(Waiter, quit_waiting) {
}
} // internal-linkage