| 396 | } |
| 397 | |
| 398 | void event::add_ref(client_t _client, bool _is_provided) { |
| 399 | |
| 400 | std::scoped_lock its_lock(refs_mutex_); |
| 401 | auto its_client = refs_.find(_client); |
| 402 | if (its_client == refs_.end()) { |
| 403 | refs_[_client][_is_provided] = 1; |
| 404 | } else { |
| 405 | auto its_provided = its_client->second.find(_is_provided); |
| 406 | if (its_provided == its_client->second.end()) { |
| 407 | refs_[_client][_is_provided] = 1; |
| 408 | } else { |
| 409 | its_provided->second++; |
| 410 | } |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | void event::remove_ref(client_t _client, bool _is_provided) { |
| 415 |
no test coverage detected