Skip to content

Commit b8f5e2b

Browse files
committed
validate close in waiter
1 parent ed8b1fd commit b8f5e2b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/libipc/waiter.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ class waiter {
4242
}
4343

4444
void close() noexcept {
45-
// cond_.close();
46-
// lock_.close();
45+
cond_.close();
46+
lock_.close();
4747
}
4848

4949
template <typename F>
@@ -64,6 +64,9 @@ class waiter {
6464
std::lock_guard<ipc::sync::mutex>{lock_}; // barrier
6565
return cond_.broadcast();
6666
}
67+
68+
void quit_waiting() {
69+
}
6770
};
6871

6972
} // namespace detail

test/test_waiter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,7 @@ TEST(Waiter, broadcast) {
3434
}
3535
}
3636

37+
TEST(Waiter, quit_waiting) {
38+
}
39+
3740
} // internal-linkage

0 commit comments

Comments
 (0)