Skip to content

Commit 4439a38

Browse files
authored
Merge pull request #23 from no92/queue-empty
2 parents a1a0100 + 2f425d6 commit 4439a38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/async/queue.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ struct queue {
140140
return {this, ct};
141141
}
142142

143+
bool empty() {
144+
return buffer_.empty();
145+
}
146+
143147
frg::optional<T> maybe_get() {
144148
frg::unique_lock lock{mutex_};
145149

0 commit comments

Comments
 (0)