| 43 | explicit MainSignalsInstance(CScheduler *pscheduler) : m_schedulerClient(pscheduler) {} |
| 44 | |
| 45 | void Register(std::shared_ptr<CValidationInterface> callbacks) |
| 46 | { |
| 47 | LOCK(m_mutex); |
| 48 | auto inserted = m_map.emplace(callbacks.get(), m_list.end()); |
| 49 | if (inserted.second) inserted.first->second = m_list.emplace(m_list.end()); |
| 50 | inserted.first->second->callbacks = std::move(callbacks); |
| 51 | } |
| 52 | |
| 53 | void Unregister(CValidationInterface* callbacks) |
| 54 | { |
no test coverage detected