| 74 | } |
| 75 | |
| 76 | bool subscription::add_client(const client_t _client) { |
| 77 | std::scoped_lock its_lock(clients_mutex_); |
| 78 | auto find_client = clients_.find(_client); |
| 79 | if (find_client != clients_.end()) |
| 80 | return false; |
| 81 | |
| 82 | clients_[_client] = subscription_state_e::ST_UNKNOWN; |
| 83 | return true; |
| 84 | } |
| 85 | |
| 86 | bool subscription::remove_client(const client_t _client) { |
| 87 | std::scoped_lock its_lock(clients_mutex_); |
no test coverage detected