MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / checkPool

Function checkPool

engine/Poseidon/Network/NetTransportNet.cpp:237–245  ·  view source on GitHub ↗

Checks _enum, _client and _server. If everything is nullptr, destroys the global NetPool!

Source from the content-addressed store, hash-verified

235static NetServer* _server = nullptr;
236
237// Sets actual enumeration instance (can be nullptr).
238void setEnum(NetSessionEnum* _en)
239{
240 poolLock.enter();
241 _enum = _en;
242 if (_en)
243 {
244 getPool();
245 getClientPeer();
246 }
247 poolLock.leave();
248}

Callers 3

~NetSessionEnumMethod · 0.85
~NetClientMethod · 0.85
~NetServerMethod · 0.85

Calls 3

destroyPoolFunction · 0.85
enterMethod · 0.45
leaveMethod · 0.45

Tested by

no test coverage detected