MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / ClearQueue

Method ClearQueue

src/output/plugins/httpd/HttpdClient.cxx:167–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void
168HttpdClient::ClearQueue() noexcept
169{
170 assert(state == State::RESPONSE);
171
172 while (!pages.empty()) {
173#ifndef NDEBUG
174 auto &page = pages.front();
175 assert(queue_size >= page->size());
176 queue_size -= page->size();
177#endif
178
179 pages.pop();
180 }
181
182 assert(queue_size == 0);
183}
184
185void
186HttpdClient::CancelQueue() noexcept

Callers 1

handle_clearFunction · 0.80

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected