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

Method setMode

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

Source from the content-addressed store, hash-verified

124//
125//
126QueueMode Queue::setMode(QueueMode eMode)
127{
128 bool fNeedNotification = false;
129 {
130 std::scoped_lock sync(m_mtxData);
131 std::swap(m_eMode, eMode);
132 fNeedNotification = testFlag(m_eMode, QueueMode::Get);
133 }
134
135 if (fNeedNotification)
136 notifyDelayedData();
137
138 return eMode;
139}
140
141//
142//

Callers 3

test_queue.cppFile · 0.80
setQueuesModeMethod · 0.80
addQueueMethod · 0.80

Calls 2

swapFunction · 0.50
testFlagFunction · 0.50

Tested by

no test coverage detected