Skip to content

Commit 29678f1

Browse files
committed
Added a cleanup interface for queue
1 parent 5071fb5 commit 29678f1

File tree

2 files changed

+315
-304
lines changed

2 files changed

+315
-304
lines changed

src/libipc/queue.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ class queue_conn {
5555
queue_conn(const queue_conn&) = delete;
5656
queue_conn& operator=(const queue_conn&) = delete;
5757

58+
void clear() noexcept {
59+
elems_h_.clear();
60+
}
61+
5862
bool connected() const noexcept {
5963
return connected_ != 0;
6064
}

0 commit comments

Comments
 (0)