Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
53
PacketPtr UniverseConnection::pullSingle() {
54
MutexLocker locker(m_mutex);
55
if (m_receiveQueue.empty())
56
return {};
57
return m_receiveQueue.takeFirst();
58
}
59
60
bool UniverseConnection::send() {
61
MutexLocker locker(m_mutex);
Callers
4
connect
Method · 0.80
acceptConnection
Method · 0.80
run
Method · 0.80
run
Method · 0.80
Calls
2
empty
Method · 0.45
takeFirst
Method · 0.45
Tested by
2
run
Method · 0.64
run
Method · 0.64