MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / loadData

Method loadData

edrav2/iprj/libcore/src/queue.cpp:75–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73//
74//
75void Queue::loadData(Variant vData)
76{
77 if (!m_fPersistent)
78 return;
79
80 {
81 std::scoped_lock sync(m_mtxData);
82 for (auto& i : vData.get("items", Sequence()))
83 {
84 if (!tryToPut(i))
85 {
86 LOGWRN("Some data wasn't loaded to the queue");
87 break;
88 }
89 ++m_nDelayedNotifications;
90 }
91 }
92 notifyDelayedData();
93}
94
95//
96//

Callers 2

test_queue.cppFile · 0.80
loadStateMethod · 0.80

Calls 2

SequenceClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected