MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / ~Analyzer

Method ~Analyzer

Suscan/Analyzer.cpp:559–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559Analyzer::~Analyzer()
560{
561 if (this->instance != nullptr) {
562 this->halt(); // Halt while thread is still running, so the thread can be aware of it
563 if (this->asyncThread != nullptr) {
564 this->asyncThread->quit();
565 this->asyncThread->wait();
566 delete this->asyncThread;
567 this->asyncThread = nullptr;
568 }
569 // Async thread is safely destroyed, proceed to destroy instance
570 suscan_analyzer_destroy(this->instance);
571 this->instance = nullptr;
572 }
573}
574

Callers

nothing calls this directly

Calls 2

haltMethod · 0.95
quitMethod · 0.80

Tested by

no test coverage detected