MCPcopy Create free account
hub / github.com/ElementsProject/elements / Register

Method Register

src/validationinterface.cpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

Calls 2

getMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected