| 33 | class buffer { |
| 34 | public: |
| 35 | void append(std::string str) { |
| 36 | std::scoped_lock guard{mtx_}; |
| 37 | entries_.emplace_back(std::move(str)); |
| 38 | cv_.notify_all(); |
| 39 | } |
| 40 | |
| 41 | void set_error(error err) { |
| 42 | std::scoped_lock guard{mtx_}; |
no test coverage detected