MCPcopy Create free account
hub / github.com/clangen/musikcube / Interrupt

Method Interrupt

src/plugins/httpdatastream/HttpDataStream.cpp:243–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void HttpDataStream::Interrupt() {
244 std::unique_lock<std::mutex> lock(this->stateMutex);
245
246 auto reader = this->reader;
247 auto downloadThread = this->downloadThread;
248
249 if (reader) {
250 reader->Interrupt();
251 }
252
253 if (downloadThread) {
254 this->interrupted = true;
255 }
256}
257
258bool HttpDataStream::CanPrefetch() {
259 return true;

Callers 2

CloseMethod · 0.95
ResetFileHandlesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected