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

Method pullSingle

source/game/StarUniverseConnection.cpp:53–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53PacketPtr UniverseConnection::pullSingle() {
54 MutexLocker locker(m_mutex);
55 if (m_receiveQueue.empty())
56 return {};
57 return m_receiveQueue.takeFirst();
58}
59
60bool UniverseConnection::send() {
61 MutexLocker locker(m_mutex);

Callers 4

connectMethod · 0.80
acceptConnectionMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls 2

emptyMethod · 0.45
takeFirstMethod · 0.45

Tested by 2

runMethod · 0.64
runMethod · 0.64