MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetNextMessage

Method GetNextMessage

src/cryptopp/mqueue.cpp:32–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32bool MessageQueue::GetNextMessage()
33{
34 if (NumberOfMessages() > 0 && !AnyRetrievable())
35 {
36 m_lengths.pop_front();
37 if (m_messageCounts[0] == 0 && m_messageCounts.size() > 1)
38 m_messageCounts.pop_front();
39 return true;
40 }
41 else
42 return false;
43}
44
45unsigned int MessageQueue::CopyMessagesTo(BufferedTransformation &target, unsigned int count, const std::string &channel) const
46{

Callers 2

ChannelPut2Method · 0.45
ProcessInputQueuesMethod · 0.45

Calls 3

NumberOfMessagesFunction · 0.70
AnyRetrievableFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected