| 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 | { |