MCPcopy Create free account
hub / github.com/apohl79/audiogridder / unload

Method unload

Server/Source/ProcessorClient.cpp:468–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468void ProcessorClient::unload() {
469 m_loaded = false;
470
471 std::lock_guard<std::mutex> lock(m_cmdMtx);
472
473 Message<DelPlugin> msg(this);
474 PLD(msg).setNumber(0);
475 msg.send(m_sockCmdOut.get());
476
477 MessageHelper::Error e;
478 MessageFactory msgFactory(this);
479 auto result = msgFactory.getResult(m_sockCmdOut.get(), 5, &e);
480 if (nullptr != result && result->getReturnCode() > -1) {
481 m_latency = result->getReturnCode();
482 } else {
483 logln("unload failed: can read result message: " << e.toString());
484 m_sockCmdOut->close();
485 }
486}
487
488const String ProcessorClient::getName() { return m_name; }
489

Callers

nothing calls this directly

Calls 7

setNumberMethod · 0.80
getResultMethod · 0.80
getReturnCodeMethod · 0.80
sendMethod · 0.45
getMethod · 0.45
toStringMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected