MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / AddLocalDestination

Method AddLocalDestination

libi2pd_client/ClientContext.cpp:370–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368 }
369
370 void ClientContext::AddLocalDestination (std::shared_ptr<ClientDestination> localDestination)
371 {
372 bool added = false;
373 {
374 std::unique_lock<std::mutex> l(m_DestinationsMutex);
375 added = m_Destinations.emplace (localDestination->GetIdentHash (), localDestination).second;
376 }
377 if (added)
378 localDestination->Start ();
379 }
380
381 void ClientContext::DeleteLocalDestination (std::shared_ptr<ClientDestination> destination)
382 {

Callers

nothing calls this directly

Calls 1

StartMethod · 0.45

Tested by

no test coverage detected