MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / pullPendingMessages

Method pullPendingMessages

source/game/StarChatProcessor.cpp:201–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201List<ChatReceivedMessage> ChatProcessor::pullPendingMessages(ConnectionId clientId) {
202 RecursiveMutexLocker locker(m_mutex);
203 if (m_clients.contains(clientId))
204 return take(m_clients.get(clientId).pendingMessages);
205 return {};
206}
207
208void ChatProcessor::setCommandHandler(CommandHandler commandHandler) {
209 RecursiveMutexLocker locker(m_mutex);

Callers 1

sendPendingChatMethod · 0.80

Calls 3

takeFunction · 0.85
containsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected